[gnome-builder] context: handle G_MAXINT == G_MAXINT case
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] context: handle G_MAXINT == G_MAXINT case
- Date: Tue, 14 Mar 2017 05:05:49 +0000 (UTC)
commit a0c8c2b3fc0b72959dcbe1e2140e033d5999536b
Author: Christian Hergert <chergert redhat com>
Date: Mon Mar 13 22:05:40 2017 -0700
context: handle G_MAXINT == G_MAXINT case
In case the caller forgets to set priority, handle the NULL case
specifically.
libide/ide-context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-context.c b/libide/ide-context.c
index d7f5f0a..adb5114 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]