chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEW etc.: Use NEW at non-formulaic call sites
[secnet]
/
ipaddr.c
diff --git
a/ipaddr.c
b/ipaddr.c
index aa770f8555a86b21029e4e0a8919ac3747a4365a..4b5b48aa43d0cf3b6f889ebd049cced818638557 100644
(file)
--- a/
ipaddr.c
+++ b/
ipaddr.c
@@
-58,7
+58,7
@@
struct ipset *ipset_new(void)
NEW(r);
r->l=0;
r->a=DEFAULT_ALLOC;
NEW(r);
r->l=0;
r->a=DEFAULT_ALLOC;
-
r->d=safe_malloc(sizeof(*r->d)*r->a,"ipset_new:data"
);
+
NEW_ARY(r->d,r->a
);
return r;
}
return r;
}