Fixed a null check that itself would cause a segfault

This commit is contained in:
Scoopta 2020-02-07 18:07:46 -08:00
parent 1e131bdce6
commit 28be2d8234

View File

@ -850,12 +850,7 @@ static gint do_sort(GtkFlowBoxChild* child1, GtkFlowBoxChild* child2, gpointer d
}
}
if(text1 == NULL || text2 == NULL) {
switch(sort_order) {
case SORT_ORDER_DEFAULT:
return index1 - index2;
case SORT_ORDER_ALPHABETICAL:
return strcmp(text1, text2);
}
}
switch(matching) {