aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2014-09-24 09:44:45 -0700
committerChris Mason <clm@fb.com>2014-09-24 12:02:09 -0700
commit265fabd8ce3a91436e060b1884d00e46d6a96d6f (patch)
tree0ca41e3b933abdeb0cdb64ef2273e5d0ccb0017a
parent177d648bdd959ad4de02ca07aece5e6053682816 (diff)
downloadblktrace-265fabd8ce3a91436e060b1884d00e46d6a96d6f.tar.gz
iowatcher: Properly initialize trace.name in find_trace_file
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r--iowatcher/blkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iowatcher/blkparse.c b/iowatcher/blkparse.c
index 83e707a..ef33d5b 100644
--- a/iowatcher/blkparse.c
+++ b/iowatcher/blkparse.c
@@ -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;