chiark / gitweb /
Merge config aliasing bug fix.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 14 Mar 2009 19:03:08 +0000 (19:03 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 14 Mar 2009 19:03:08 +0000 (19:03 +0000)
lib/configuration.c

index 23ecde27eadf3d35004672e8dec10f69e3374e5c..1fcfb1a6eefd138ef66aaba05dfa47438632c8da 100644 (file)
@@ -510,6 +510,7 @@ static void free_none(struct config attribute((unused)) *c,
 static void free_string(struct config *c,
                        const struct conf *whoami) {
   xfree(VALUE(c, char *));
+  VALUE(c, char *) = 0;
 }
 
 static void free_stringlist(struct config *c,