summaryrefslogtreecommitdiff
path: root/src/ui/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r--src/ui/ui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 010130c..6df289f 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -671,10 +671,12 @@ meta_text_property_to_utf8 (Display *xdisplay,
&list);
if (count == 0)
- return NULL;
-
- retval = list[0];
- list[0] = g_strdup (""); /* something to free */
+ retval = NULL;
+ else
+ {
+ retval = list[0];
+ list[0] = g_strdup (""); /* something to free */
+ }
g_strfreev (list);