summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc9ce08)
raw | patch | inline | side by side (parent: fc9ce08)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:13:59 +0000 (18:13 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:13:59 +0000 (18:13 +0200) |
src/routeros.c | patch | blob | history |
diff --git a/src/routeros.c b/src/routeros.c
index 667c2fa581722e00ef01161e385d6e13d0c4e36a..7ee302487f9dd841c9a35aeac86fef54eb9a597b 100644 (file)
--- a/src/routeros.c
+++ b/src/routeros.c
int status;
int i;
- router_data = malloc (sizeof (*router_data));
+ router_data = calloc (1, sizeof (*router_data));
if (router_data == NULL)
return (-1);
- memset (router_data, 0, sizeof (*router_data));
router_data->connection = NULL;
router_data->node = NULL;
router_data->service = NULL;