From: Dana Jansens Date: Sat, 19 Apr 2003 01:16:30 +0000 (+0000) Subject: check the string not the pointer to it X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=be6d54a0e8ee87c32ded68451430dda0258da05b;p=chaz%2Fopenbox check the string not the pointer to it --- diff --git a/openbox/prop.c b/openbox/prop.c index 7117a91c..df6cbbeb 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -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; }