Commit a9c9b6b699fa39ac3a5b9386f57f272bff5d0214
Do not call qsort() will first NULL argument
clang-analyzer says that it's UB.
Author: xaizek
Author date (UTC): 2017-05-26 14:44
Committer name: xaizek
Committer date (UTC): 2017-05-26 14:44
Parent(s): 2c30364047be15b93bbbcf507e6bd5f71fa057cd
Signing key: 99DC5E4DB05F6BE2
Tree: 9ec636cea4bcf42c43dcc198dedfc088abdbcac3
File src/compare.c changed (mode: 100644) (index 334eaa02b..2aa89b624) |
... |
... |
compare_one_pane(FileView *view, CompareType ct, ListType lt, int skip_empty) |
395 |
395 |
return 1; |
return 1; |
396 |
396 |
} |
} |
397 |
397 |
|
|
398 |
|
qsort(curr.entries, curr.nentries, sizeof(*curr.entries), &id_sorter); |
|
|
398 |
|
if(curr.entries != NULL) |
|
399 |
|
{ |
|
400 |
|
qsort(curr.entries, curr.nentries, sizeof(*curr.entries), &id_sorter); |
|
401 |
|
} |
399 |
402 |
|
|
400 |
403 |
flist_custom_start(view, title); |
flist_custom_start(view, title); |
401 |
404 |
|
|