diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2016-06-05 19:23:31 +0200 |
---|---|---|
committer | Andrew Gregory <andrew.gregory.8@gmail.com> | 2017-05-09 05:27:40 +0200 |
commit | e03c5392883a39be1bf46a4d5811d2c46359d196 (patch) | |
tree | 46740d1f01d515e91637b80bd6818524310de658 /build-aux/tap-driver.sh | |
parent | f31792adb5fc9ba9a4c6f14a6520282702f17b71 (diff) | |
download | pacman-e03c5392883a39be1bf46a4d5811d2c46359d196.tar.gz pacman-e03c5392883a39be1bf46a4d5811d2c46359d196.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>
(cherry picked from commit 80d97fcf7526f16d9eb097b8061956662207ed78)
Diffstat (limited to 'build-aux/tap-driver.sh')
0 files changed, 0 insertions, 0 deletions