From a12fa4204d7da3256537222294d02c8d340f2650 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 29 Oct 2013 15:59:45 +0100 Subject: udev: link-config - use new0 instead of calloc --- src/udev/net/link-config-parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/udev/net/link-config-parse.c b/src/udev/net/link-config-parse.c index 54dd57be59..c339d08552 100644 --- a/src/udev/net/link-config-parse.c +++ b/src/udev/net/link-config-parse.c @@ -25,6 +25,7 @@ #include "link-config.h" #include "utf8.h" +#include "util.h" #include "conf-parser.h" static const char* const mac_policy_table[] = { @@ -103,7 +104,7 @@ int config_parse_hwaddr(const char *unit, assert(rvalue); assert(data); - n = calloc(1, sizeof(struct ether_addr)); + n = new0(struct ether_addr, 1); if (!n) return log_oom(); -- cgit v1.2.3-54-g00ecf