From: Brendan Cully Date: Tue, 19 Aug 2008 20:17:18 +0000 (-0700) Subject: Silence an incorrect uninitialized variable warning. X-Git-Tag: mutt-1-5-19-rel~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8ba9bfa62aa739fd09cbee3cd7f0cd38dfcb2ae;p=mutt Silence an incorrect uninitialized variable warning. --- diff --git a/init.c b/init.c index 2a4bded9..22d3aeb9 100644 --- a/init.c +++ b/init.c @@ -1686,7 +1686,7 @@ static void pretty_var (char *dst, size_t len, const char *option, const char *v static int check_charset (struct option_t *opt, const char *val) { - char *p, *q, *s = safe_strdup (val); + char *p, *q = NULL, *s = safe_strdup (val); int rc = 0, strict = strcmp (opt->option, "send_charset") == 0; for (p = strtok_r (s, ":", &q); p; p = strtok_r (NULL, ":", &q))