projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #571 from jktjkt/sensors-support-power
[collectd.git]
/
src
/
write_http.c
diff --git
a/src/write_http.c
b/src/write_http.c
index
198fb48
..
d97bc9b
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-27,7
+27,6
@@
#include "plugin.h"
#include "common.h"
#include "utils_cache.h"
#include "plugin.h"
#include "common.h"
#include "utils_cache.h"
-#include "utils_parse_option.h"
#include "utils_format_json.h"
#if HAVE_PTHREAD_H
#include "utils_format_json.h"
#if HAVE_PTHREAD_H
@@
-590,7
+589,7
@@
static int wh_config_url (oconfig_item_t *ci) /* {{{ */
/* Allocate the buffer. */
cb->send_buffer = malloc (cb->send_buffer_size);
/* Allocate the buffer. */
cb->send_buffer = malloc (cb->send_buffer_size);
- if (cb->send_buffer ==
0
)
+ if (cb->send_buffer ==
NULL
)
{
ERROR ("write_http plugin: malloc(%zu) failed.", cb->send_buffer_size);
wh_callback_free (cb);
{
ERROR ("write_http plugin: malloc(%zu) failed.", cb->send_buffer_size);
wh_callback_free (cb);