Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/common/util-common.h
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2016-06-05 19:23:31 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-05-08 23:27:40 -0400
commite03c5392883a39be1bf46a4d5811d2c46359d196 (patch)
tree46740d1f01d515e91637b80bd6818524310de658 /src/common/util-common.h
parentf31792adb5fc9ba9a4c6f14a6520282702f17b71 (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> (cherry picked from commit 80d97fcf7526f16d9eb097b8061956662207ed78)
Diffstat (limited to 'src/common/util-common.h')
0 files changed, 0 insertions, 0 deletions