check the string not the pointer to it
This commit is contained in:
parent
6b7737acc3
commit
be6d54a0e8
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ gboolean prop_get_string_locale(Window win, Atom prop, char **ret)
|
||||||
if (get_stringlist(win, prop, &list, &nstr) && nstr) {
|
if (get_stringlist(win, prop, &list, &nstr) && nstr) {
|
||||||
*ret = g_locale_to_utf8(list[0], -1, NULL, NULL, NULL);
|
*ret = g_locale_to_utf8(list[0], -1, NULL, NULL, NULL);
|
||||||
XFreeStringList(list);
|
XFreeStringList(list);
|
||||||
if (ret) return TRUE;
|
if (*ret) return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue