diff options
author | Tom Gundersen <teg@jklm.no> | 2013-10-29 15:59:45 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-10-29 16:12:12 +0100 |
commit | a12fa4204d7da3256537222294d02c8d340f2650 (patch) | |
tree | e6c82a002241e2fae371bc0d90350aa335fdf3a8 /src/udev | |
parent | dc7d8997aa731cf68a078d901dafb809c90bd21a (diff) |
udev: link-config - use new0 instead of calloc
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/net/link-config-parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |