Check that the mime handler has a label before trying to strcmp it.

SVN revision: 32155
This commit is contained in:
Christopher Michael 2007-10-24 18:25:44 +00:00
parent 5a011806da
commit 48905c36d5
1 changed files with 2 additions and 0 deletions

View File

@ -6532,7 +6532,9 @@ _e_fm2_context_list_sort(void *data1, void *data2)
if (!data1) return 1;
if (!data2) return -1;
d1 = data1;
if (!d1->label) return 1;
d2 = data2;
if (!d2->label) return -1;
return (strcmp(d1->label, d2->label));
}