fix a seg from ignoreing PROP_GETSS failure
This commit is contained in:
parent
5a95786263
commit
cb6840788b
1 changed files with 4 additions and 3 deletions
|
@ -378,9 +378,10 @@ void screen_update_desktop_names()
|
||||||
/* empty the array */
|
/* empty the array */
|
||||||
g_strfreev(screen_desktop_names);
|
g_strfreev(screen_desktop_names);
|
||||||
|
|
||||||
PROP_GETSS(ob_root, net_desktop_names, utf8, &screen_desktop_names);
|
if (PROP_GETSS(ob_root, net_desktop_names, utf8, &screen_desktop_names))
|
||||||
|
for (i = 0; screen_desktop_names[i] && i <= screen_num_desktops; ++i);
|
||||||
for (i = 0; screen_desktop_names[i] && i <= screen_num_desktops; ++i);
|
else
|
||||||
|
i = 0;
|
||||||
if (i <= screen_num_desktops) {
|
if (i <= screen_num_desktops) {
|
||||||
screen_desktop_names = g_renew(char*, screen_desktop_names,
|
screen_desktop_names = g_renew(char*, screen_desktop_names,
|
||||||
screen_num_desktops + 1);
|
screen_num_desktops + 1);
|
||||||
|
|
Loading…
Reference in a new issue