diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-27 23:14:17 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-28 00:49:27 +0200 |
commit | bf56fb6eb82b732900c32cbf375f7910ac479d98 (patch) | |
tree | b370caa6f8f1c4f973358db0d22ca995d106ff37 /lib/libalpm/po/remove-potcdate.sin | |
parent | 619c3629ca61cea2c182fcb0197f9b84ba4209c3 (diff) | |
download | pacman-bf56fb6eb82b732900c32cbf375f7910ac479d98.tar.gz pacman-bf56fb6eb82b732900c32cbf375f7910ac479d98.tar.xz |
alpm_list: use malloc instead of calloc
In every case we were calling calloc, the struct we allocated (or the
memory to be used) is fully specified later in the method.
For alpm_list_t allocations, we always set all of data, next, and prev.
For list copying and transforming to an array, we always copy the entire
data element, so no need to zero it first.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/remove-potcdate.sin')
0 files changed, 0 insertions, 0 deletions