diff --git a/src/config.c b/src/config.c --- a/src/config.c +++ b/src/config.c @@ -64,7 +64,7 @@ while (CONFIG_OPTIONS[map] != NULL) { if (!strcmp (CONFIG_OPTIONS[map], token)) { if (value) { - if (line[map] != '\0') + if (line[map] != NULL) free (line[map]); line[map] = compat_strdup (value); } @@ -76,7 +76,7 @@ map = 0; while (CONFIG_OPTIONS[map] != NULL) { - if (line[map] != '\0') + if (line[map] != NULL) switch (map) { case NICK: uc->nick = compat_strdup (line[map]);