Skip to content

Commit

Permalink
charset-alias: Fix keyvalues iteration
Browse files Browse the repository at this point in the history
charset-alias-plugin.c:113:27: error: comparison between pointer and zero
character constant [-Werror=pointer-compare]
  for (i = 0; keyvalues[i] != '\0'; i++) {
                           ^~
charset-alias-plugin.c:113:14: note: did you mean to dereference the pointer?
  for (i = 0; keyvalues[i] != '\0'; i++) {
  • Loading branch information
mrannanj authored and sirainen committed Feb 19, 2018
1 parent c2a88ba commit 5bf8a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/charset-alias/charset-alias-plugin.c
Expand Up @@ -110,7 +110,7 @@ static unsigned int charset_aliases_init(struct mail_user *user, pool_t pool, co

p_array_init(&charset_aliases, pool, 1);
keyvalues = t_strsplit_spaces(str, " ");
for (i = 0; keyvalues[i] != '\0'; i++) {
for (i = 0; keyvalues[i] != NULL; i++) {
value = strchr(keyvalues[i], '=');
if (value == NULL) {
i_error("charset_alias: Missing '=' in charset_aliases setting");
Expand Down

0 comments on commit 5bf8a67

Please sign in to comment.