Fixed a null check that itself would cause a segfault
This commit is contained in:
parent
1e131bdce6
commit
28be2d8234
@ -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);
|
||||
}
|
||||
return index1 - index2;
|
||||
}
|
||||
|
||||
switch(matching) {
|
||||
|
Loading…
Reference in New Issue
Block a user