iowatcher: Properly initialize trace.name in find_trace_file
authorChris Mason <clm@fb.com>
Wed, 24 Sep 2014 16:44:45 +0000 (09:44 -0700)
committerChris Mason <clm@fb.com>
Wed, 24 Sep 2014 19:02:09 +0000 (12:02 -0700)
Signed-off-by: Chris Mason <clm@fb.com>
iowatcher/blkparse.c

index 83e707a2ad10bb4239318836e16eb0bc209b3ca4..ef33d5be79a10e5780f01983724e20cc3900130b 100644 (file)
@@ -875,7 +875,7 @@ static char *find_trace_file(char *filename)
         */
        dot = strrchr(filename, '.');
        if (!dot || strcmp(".dump", dot) != 0) {
-               struct tracelist trace = {0};
+               struct tracelist trace = {0 ,NULL};
                if (dot && dot != filename)
                        len = dot - filename;