[gnome-builder/wip/chergert/flatpak-breakout: 4/7] run-manager: check for non-NULL gvariant parameter
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/flatpak-breakout: 4/7] run-manager: check for non-NULL gvariant parameter
- Date: Sat, 10 Sep 2016 16:38:28 +0000 (UTC)
commit 8e5a2c21f5e251e98033551ffaa9502e46efac9d
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 10 09:33:41 2016 -0700
run-manager: check for non-NULL gvariant parameter
libide/runner/ide-run-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libide/runner/ide-run-manager.c b/libide/runner/ide-run-manager.c
index 5af1579..adbf4a3 100644
--- a/libide/runner/ide-run-manager.c
+++ b/libide/runner/ide-run-manager.c
@@ -865,7 +865,10 @@ ide_run_manager_activate_action (GActionGroup *group,
if (FALSE) {}
else if (g_strcmp0 (action_name, "run-with-handler") == 0)
{
- const gchar *handler = g_variant_get_string (parameter, NULL);
+ const gchar *handler = NULL;
+
+ if (parameter != NULL)
+ handler = g_variant_get_string (parameter, NULL);
/* "" translates to current handler */
if (handler && *handler)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]