diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 21:50:04 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:26 +0100 |
commit | 3e9e1b51bf48bbfbe59ed6c66f62295b9465f9a4 (patch) | |
tree | c1452ccab25c5ff80352934eade00080f301d181 /src/core | |
parent | fbeab26a3510680a5ad1753bf554b70b9a78a336 (diff) | |
download | weechat-3e9e1b51bf48bbfbe59ed6c66f62295b9465f9a4.zip |
core, plugins: replace calls to strcmp by string_strcmp when difference matters (issue #1872)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-config-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/wee-config-file.c b/src/core/wee-config-file.c index 14a682516..045f5c73e 100644 --- a/src/core/wee-config-file.c +++ b/src/core/wee-config-file.c @@ -130,7 +130,7 @@ config_file_find_pos (const char *name) for (ptr_config = config_files; ptr_config; ptr_config = ptr_config->next_config) { - if (strcmp (name, ptr_config->name) < 0) + if (string_strcmp (name, ptr_config->name) < 0) return ptr_config; } @@ -325,7 +325,7 @@ config_file_section_find_pos (struct t_config_file *config_file, for (ptr_section = config_file->sections; ptr_section; ptr_section = ptr_section->next_section) { - if (strcmp (name, ptr_section->name) < 0) + if (string_strcmp (name, ptr_section->name) < 0) return ptr_section; } @@ -556,7 +556,7 @@ config_file_option_find_pos (struct t_config_section *section, const char *name) for (ptr_option = section->last_option; ptr_option; ptr_option = ptr_option->prev_option) { - if (strcmp (name, ptr_option->name) >= 0) + if (string_strcmp (name, ptr_option->name) >= 0) return ptr_option->next_option; } |