X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_http.c;h=d97bc9b52ce9fde8b736d80d31bb0ede208f9f70;hb=f2389f97fbec15f49dcd1d9b06b3b6bbd0837e8a;hp=198fb48d32d5c242027df88a0ae1f40e0de589cb;hpb=e324dc1e06b6816613a1af271ac6a0adc49355dc;p=collectd.git diff --git a/src/write_http.c b/src/write_http.c index 198fb48d..d97bc9b5 100644 --- 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 "utils_parse_option.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); - 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);