Merge config aliasing bug fix.
[disorder] / lib / configuration.c
index 23ecde2..1fcfb1a 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,