Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
websocket: Tune maximum received length
[src/app-framework-binder.git]
/
src
/
locale-root.c
diff --git
a/src/locale-root.c
b/src/locale-root.c
index
ece4456
..
8386e66
100644
(file)
--- a/
src/locale-root.c
+++ b/
src/locale-root.c
@@
-263,7
+263,8
@@
static int init_container(struct locale_container *container, int dirfd)
}
/* sort the folders */
}
/* sort the folders */
- qsort(container->folders, container->count, sizeof *container->folders, compare_folders_for_qsort);
+ if (container->count)
+ qsort(container->folders, container->count, sizeof *container->folders, compare_folders_for_qsort);
/* build the parents links */
i = container->count;
/* build the parents links */
i = container->count;