diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2016-06-05 19:23:31 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-08-30 10:10:40 +0200 |
commit | 80d97fcf7526f16d9eb097b8061956662207ed78 (patch) | |
tree | 98de898f9206fab56bfe26933ea0b4392247a5b2 /scripts/libmakepkg | |
parent | 0f0b192d8a59134e9a58781c58aa3202df2eda2c (diff) | |
download | pacman-80d97fcf7526f16d9eb097b8061956662207ed78.tar.gz pacman-80d97fcf7526f16d9eb097b8061956662207ed78.tar.xz |
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 'scripts/libmakepkg')
0 files changed, 0 insertions, 0 deletions