fix a seg from ignoreing PROP_GETSS failure

This commit is contained in:
Dana Jansens 2003-04-14 22:39:47 +00:00
parent 5a95786263
commit cb6840788b

View file

@ -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);