chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe5c4e4
)
rtnl: use malloc0 instead of calloc
author
Tom Gundersen
<teg@jklm.no>
Tue, 29 Oct 2013 14:57:54 +0000
(15:57 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Tue, 29 Oct 2013 15:12:11 +0000
(16:12 +0100)
src/libsystemd-rtnl/rtnl-message.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-rtnl/rtnl-message.c
b/src/libsystemd-rtnl/rtnl-message.c
index 80ffb347ddcb4de15f5746ee19fe6604c55f9461..17183ab9130d84d2998ce7e73026f2259adce283 100644
(file)
--- a/
src/libsystemd-rtnl/rtnl-message.c
+++ b/
src/libsystemd-rtnl/rtnl-message.c
@@
-51,7
+51,7
@@
static int message_new(sd_rtnl_message **ret, size_t initial_size) {
if (!m)
return -ENOMEM;
- m->hdr =
calloc(initial_size, 1
);
+ m->hdr =
malloc0(initial_size
);
if (!m->hdr) {
free(m);
return -ENOMEM;