projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
madwifi: fix scan-build warning
[collectd.git]
/
src
/
utils_format_json.c
diff --git
a/src/utils_format_json.c
b/src/utils_format_json.c
index
2c0e4cd
..
99996b4
100644
(file)
--- a/
src/utils_format_json.c
+++ b/
src/utils_format_json.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
+
#include "plugin.h"
#include "common.h"
@@
-297,7
+298,7
@@
static int meta_data_keys_to_json (char *buffer, size_t buffer_size, /* {{{ */
}
} /* for (keys) */
- if (offset
<
= 0)
+ if (offset
=
= 0)
return (ENOENT);
buffer[0] = '{'; /* replace leading ',' */