]> granicus.if.org Git - mutt/commitdiff
Silence an incorrect uninitialized variable warning.
authorBrendan Cully <brendan@kublai.com>
Tue, 19 Aug 2008 20:17:18 +0000 (13:17 -0700)
committerBrendan Cully <brendan@kublai.com>
Tue, 19 Aug 2008 20:17:18 +0000 (13:17 -0700)
init.c

diff --git a/init.c b/init.c
index 2a4bded996ef15c23bb724c49dac314ebfffa4a7..22d3aeb97b376045f10ef813acc1bd1afb1c0efc 100644 (file)
--- 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))