diff options
author | Timm Bäder <mail@baedert.org> | 2016-02-10 12:28:32 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-02-10 12:28:32 +0100 |
commit | 8ea573b473067292dbe2a5695bec225336933c85 (patch) | |
tree | 5d9134db29c42acd8d6bd8122da2a733cff83ab8 | |
parent | 7ad6043478a4b0de9a1c322e0f5b2620d7cd3f50 (diff) | |
download | gtk+-8ea573b473067292dbe2a5695bec225336933c85.tar.gz |
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.
-rw-r--r-- | 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 db2e820724..a207e183f4 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 |