diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-12-01 19:29:41 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-12-01 19:29:41 +0000 |
commit | cba15593f2e5b40e3931be4fe99eea1491e93357 (patch) | |
tree | 964f48f88607ea9432cb85251936fa3f1123a633 /src/core/settings.c | |
parent | 997a25c52224671d8dba6ca0f14a21a8b5d2ce44 (diff) | |
download | irssi-cba15593f2e5b40e3931be4fe99eea1491e93357.zip |
Aux-sort settings by key in settings_get_sorted.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4938 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/settings.c')
-rw-r--r-- | src/core/settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index b5876484..f6467744 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -542,7 +542,10 @@ void settings_check_module(const char *module) static int settings_compare(SETTINGS_REC *v1, SETTINGS_REC *v2) { - return strcmp(v1->section, v2->section); + int cmp = strcmp(v1->section, v2->section); + if (!cmp) + cmp = strcmp(v1->key, v2->key); + return cmp; } static void settings_hash_get(const char *key, SETTINGS_REC *rec, |