commit | 0a3c52f0875c85b6750239a8b65bfe230d28df35 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Mon Apr 14 08:57:35 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Mon Apr 14 08:57:35 2014 -0600 |
tree | e2ac6ede7c2450d1a046c29f18786f49dde5bb94 | |
parent | a48fddbcb33991f9b2d1be1fa0a5e5cfb9ea9fae [diff] [blame] |
stat: fix wrong check for whether we have a description or not It's an array, hence never NULL. Check for size instead. Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/stat.c b/stat.c index 5a553d0..ca73310 100644 --- a/stat.c +++ b/stat.c
@@ -831,7 +831,7 @@ log_info("\n"); /* Additional output if description is set */ - if (ts->description) + if (strlen(ts->description)) log_info(";%s", ts->description); log_info("\n");