diff options
| -rw-r--r-- | src/plist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c index 514c8e5..f0f0028 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -1808,6 +1808,9 @@ void plist_sort(plist_t plist) | |||
| 1808 | } else if (PLIST_IS_DICT(plist)) { | 1808 | } else if (PLIST_IS_DICT(plist)) { |
| 1809 | node_t node = (node_t)plist; | 1809 | node_t node = (node_t)plist; |
| 1810 | node_t ch; | 1810 | node_t ch; |
| 1811 | if (!node_first_child(node)) { | ||
| 1812 | return; | ||
| 1813 | } | ||
| 1811 | for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) { | 1814 | for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) { |
| 1812 | ch = node_next_sibling(ch); | 1815 | ch = node_next_sibling(ch); |
| 1813 | plist_sort((plist_t)ch); | 1816 | plist_sort((plist_t)ch); |
