forked from enlightenment/enlightenment
Paranoid NULL checking added due to a report of crashes. May simply move
the crash to later. Let's see if this at least allows the dialog to appear, which can give us more clues. SVN revision: 24926
This commit is contained in:
parent
0a5e26b82b
commit
28a1a8bf34
|
@ -379,5 +379,13 @@ _sort_icon_themes(void *data1, void *data2)
|
|||
|
||||
m1 = data1;
|
||||
m2 = data2;
|
||||
|
||||
/* These are supposed to be required strings. Be paranoid pending further investigation. */
|
||||
if (!m1->theme) return 1;
|
||||
if (!m2->theme) return -1;
|
||||
|
||||
if (!m1->theme->name) return 1;
|
||||
if (!m2->theme->name) return -1;
|
||||
|
||||
return (strcmp((const char*)m1->theme->name, (const char*)m2->theme->name));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue