projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Drop circular dependency in log.c and lib/output_buffer.c
[fio.git]
/
log.c
diff --git
a/log.c
b/log.c
index 4eb4af5905c40a45c8df1bd12f4bf02a99ea70a0..172f1538c6e7366f784c374db0dcc1b3ea7b4cd6 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-8,6
+8,12
@@
size_t log_info_buf(const char *buf, size_t len)
{
+ /*
+ * buf could be NULL (not just "").
+ */
+ if (!buf)
+ return 0;
+
if (is_backend) {
size_t ret = fio_server_text_output(FIO_LOG_INFO, buf, len);
if (ret != -1)