[gtk+] css node tree: Fix crash



commit 8ea573b473067292dbe2a5695bec225336933c85
Author: Timm Bäder <mail baedert org>
Date:   Wed Feb 10 12:28:32 2016 +0100

    css node tree: Fix crash
    
    This function would return "" whenever the state of the css node was
    unset, causing a crash when selecting the css node tree from the
    sidebar.

 gtk/inspector/css-node-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index db2e820..a207e18 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -395,7 +395,7 @@ format_state_flags (GtkStateFlags state)
       return g_string_free (str, FALSE);
     }
 
- return "";
+ return g_strdup ("");
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]