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:
David Walter Seikel 2006-08-20 05:30:42 +00:00
parent 0a5e26b82b
commit 28a1a8bf34
1 changed files with 8 additions and 0 deletions

View File

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