conf-parser: properly initialize variable we free() later (llvm-clang-analyzer)
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Sep 2009 21:51:39 +0000 (23:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 8 Sep 2009 21:51:39 +0000 (23:51 +0200)
src/pulsecore/conf-parser.c

index b4ab23c..dd4a99e 100644 (file)
@@ -113,7 +113,7 @@ static int parse_line(const char *filename, unsigned line, char **section, const
         return 0;
 
     if (pa_startswith(b, ".include ")) {
-        char *path, *fn;
+        char *path = NULL, *fn;
         int r;
 
         fn = strip(b+9);