diff options
author | Chris Mason <clm@fb.com> | 2014-09-24 09:44:45 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-24 12:02:09 -0700 |
commit | 265fabd8ce3a91436e060b1884d00e46d6a96d6f (patch) | |
tree | 0ca41e3b933abdeb0cdb64ef2273e5d0ccb0017a | |
parent | 177d648bdd959ad4de02ca07aece5e6053682816 (diff) | |
download | blktrace-265fabd8ce3a91436e060b1884d00e46d6a96d6f.tar.gz blktrace-265fabd8ce3a91436e060b1884d00e46d6a96d6f.tar.bz2 |
iowatcher: Properly initialize trace.name in find_trace_file
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | iowatcher/blkparse.c | 2 |
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; |