summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4743f19)
raw | patch | inline | side by side (parent: 4743f19)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 28 Mar 2016 17:42:36 +0000 (19:42 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 28 Mar 2016 17:42:36 +0000 (19:42 +0200) |
src/curl.c | patch | blob | history |
diff --git a/src/curl.c b/src/curl.c
index f6127a9fb11cfab3f2f4a9d73fadd7390cd078ac..5f782074d3251d0e6fc132974c818f8ee84aec55 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
WARNING ("curl plugin: Ignoring arguments for the `Match' block.");
}
- match = malloc (sizeof (*match));
+ match = calloc (1, sizeof (*match));
if (match == NULL)
{
- ERROR ("curl plugin: malloc failed.");
+ ERROR ("curl plugin: calloc failed.");
return (-1);
}
- memset (match, 0, sizeof (*match));
status = 0;
for (i = 0; i < ci->children_num; i++)
return (-1);
}
- page = malloc (sizeof (*page));
+ page = calloc (1, sizeof (*page));
if (page == NULL)
{
- ERROR ("curl plugin: malloc failed.");
+ ERROR ("curl plugin: calloc failed.");
return (-1);
}
- memset (page, 0, sizeof (*page));
page->url = NULL;
page->user = NULL;
page->pass = NULL;