summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 722969f)
raw | patch | inline | side by side (parent: 722969f)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:36:46 +0000 (18:36 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:36:46 +0000 (18:36 +0200) |
src/write_http.c | patch | blob | history |
diff --git a/src/write_http.c b/src/write_http.c
index ec3a01ce228aeb7798a611333b90fdb9d2b4630d..14ce0ec722542a47de52aa360e28a726d15d1322 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
int status = 0;
int i;
- cb = malloc (sizeof (*cb));
+ cb = calloc (1, sizeof (*cb));
if (cb == NULL)
{
- ERROR ("write_http plugin: malloc failed.");
+ ERROR ("write_http plugin: calloc failed.");
return (-1);
}
- memset (cb, 0, sizeof (*cb));
cb->verify_peer = 1;
cb->verify_host = 1;
cb->format = WH_FORMAT_COMMAND;