From: David Malcolm Date: Mon, 2 Oct 2023 16:16:54 +0000 (-0400) Subject: diagnostics: fix missing init of set_locations_cb X-Git-Tag: basepoints/gcc-15~5773 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c64693fb885f21fafa01d67c5d85e11942770a7c;p=thirdparty%2Fgcc.git diagnostics: fix missing init of set_locations_cb gcc/ChangeLog: * diagnostic.cc (diagnostic_initialize): Initialize set_locations_cb to nullptr. Signed-off-by: David Malcolm --- diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index 00183b107001..28ab74ff23eb 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -245,6 +245,7 @@ diagnostic_initialize (diagnostic_context *context, int n_opts) context->begin_group_cb = NULL; context->end_group_cb = NULL; context->final_cb = default_diagnostic_final_cb; + context->set_locations_cb = nullptr; context->ice_handler_cb = NULL; context->includes_seen = NULL; context->m_client_data_hooks = NULL;