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 <dmalcolm@redhat.com>
This commit is contained in:
David Malcolm
2023-10-02 12:16:54 -04:00
parent 0731889c02
commit c64693fb88

View File

@@ -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;