Commit a0c8c2b3 authored by Christian Hergert's avatar Christian Hergert
Browse files

context: handle G_MAXINT == G_MAXINT case

In case the caller forgets to set priority, handle the NULL case
parent 75644edb
......@@ -1531,7 +1531,7 @@ ide_context_init_early_discover_cb (PeasExtensionSet *set,
ret = ide_build_system_discovery_discover (discovery, state->project_file, NULL, &priority, NULL);
if (ret != NULL && priority < state->priority)
if (ret != NULL && (priority < state->priority || state->hint == NULL))
g_free (state->hint);
state->hint = g_steal_pointer (&ret);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment