projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix return value of make_filename() when no filename_format
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 4a722555fda9ae612540b96c7d32023ed3a7bed9..6af6c450fb6c3f98bfdee648344ae9dc69923ed1 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-1121,7
+1121,7
@@
static char *make_filename(char *buf, size_t buf_size,struct thread_options *o,
if (!o->filename_format || !strlen(o->filename_format)) {
sprintf(buf, "%s.%d.%d", jobname, jobnum, filenum);
- return
NULL
;
+ return
buf
;
}
for (f = &fpre_keywords[0]; f->keyword; f++)