]> Dogcows Code - chaz/openbox/commitdiff
check the string not the pointer to it
authorDana Jansens <danakj@orodu.net>
Sat, 19 Apr 2003 01:16:30 +0000 (01:16 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 19 Apr 2003 01:16:30 +0000 (01:16 +0000)
openbox/prop.c

index 7117a91c95b7b4393921881b3d1aba904d253c94..df6cbbebd8c4ee047772b3a6f529f1c7a668d4ec 100644 (file)
@@ -270,7 +270,7 @@ gboolean prop_get_string_locale(Window win, Atom prop, char **ret)
     if (get_stringlist(win, prop, &list, &nstr) && nstr) {
         *ret = g_locale_to_utf8(list[0], -1, NULL, NULL, NULL);
         XFreeStringList(list);
-        if (ret) return TRUE;
+        if (*ret) return TRUE;
     }
     return FALSE;
 }
This page took 0.025183 seconds and 4 git commands to generate.