Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2016-06-05 19:23:31 +0200
committerAllan McRae <allan@archlinux.org>2016-08-30 18:10:40 +1000
commit80d97fcf7526f16d9eb097b8061956662207ed78 (patch)
tree98de898f9206fab56bfe26933ea0b4392247a5b2 /lib/libalpm/add.c
parent0f0b192d8a59134e9a58781c58aa3202df2eda2c (diff)
Always use proper error code in alpm_initialize.
In out of memory conditions, an undefined error value is written into *err, because myerr is never explicitly set in these cases. I have also converted a calloc into a MALLOC call, because the memory will be properly filled by the snprintf call right after it. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.c')
0 files changed, 0 insertions, 0 deletions