projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a48fddb
)
stat: fix wrong check for whether we have a description or not
author
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 14:57:35 +0000
(08:57 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 14 Apr 2014 14:57:35 +0000
(08:57 -0600)
It's an array, hence never NULL. Check for size instead.
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 5a553d00653700634872e406b6b280bb3c02d763..ca733108a879b772d45186a0600e8439f9f50433 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-831,7
+831,7
@@
static void show_thread_status_terse_v2(struct thread_stat *ts,
log_info("\n");
/* Additional output if description is set */
- if (
ts->description
)
+ if (
strlen(ts->description)
)
log_info(";%s", ts->description);
log_info("\n");