[gtk+] inspector: Avoid a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Avoid a crash
- Date: Fri, 6 Jun 2014 01:09:31 +0000 (UTC)
commit 763f0a37c1c5e22fb068a482dee3773f1157ded7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 5 21:08:56 2014 -0400
inspector: Avoid a crash
An unset action-name should not cause us to crash.
gtk/inspector/prop-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index 752caec..8a13b3f 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -1222,6 +1222,9 @@ find_action_owner (GtkActionable *actionable)
GActionGroup *group;
full_name = gtk_actionable_get_action_name (actionable);
+ if (!full_name)
+ return NULL;
+
dot = strchr (full_name, '.');
prefix = g_strndup (full_name, dot - full_name);
name = dot + 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]