summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bc014af)
raw | patch | inline | side by side (parent: bc014af)
author | Florian Forster <octo@collectd.org> | |
Fri, 5 Sep 2014 05:16:20 +0000 (07:16 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 5 Sep 2014 05:16:20 +0000 (07:16 +0200) |
Not even zero. Not even once.
References: #722
References: #722
src/write_http.c | patch | blob | history |
diff --git a/src/write_http.c b/src/write_http.c
index 198fb48d32d5c242027df88a0ae1f40e0de589cb..7a1fbd04fd823bca1fae6609d28f6ad65cbeab64 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
/* 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);