diff options
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, |