Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-03-01 07:51:00 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-03-01 07:51:00 +0000
commit0b4ab2c0a80e8581e2caa50e809af7f5573c0e48 (patch)
tree27a907f06e52ecb8ea1c5931350993bd38c89a06 /lib/libalpm/package.c
parentce4c043805865f745e6aa8762455a2f9b19b25cd (diff)
added ERROR logs in case of malloc failures (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 4f2bcaaa..b7d2cb5b 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -41,6 +41,7 @@ pmpkg_t *_alpm_pkg_new(const char *name, const char *version)
pkg = (pmpkg_t *)malloc(sizeof(pmpkg_t));
if(pkg == NULL) {
+ _alpm_log(PM_LOG_ERROR, "malloc failure: could not allocate %d bytes", sizeof(pmpkg_t));
RET_ERR(PM_ERR_MEMORY, NULL);
}