summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-19 18:06:37 +0000
committerAaron Griffin <aaron@archlinux.org>2007-01-19 18:06:37 +0000
commit77f6bcfa3dac534a03d1388eb95297570cc0e052 (patch)
tree2d7db89f580a3777a95ef07d644231ae0e90a0fd /lib
parentd27e5efec9b6571f4edfe46386c49c9cfc29815e (diff)
downloadpacman-77f6bcfa3dac534a03d1388eb95297570cc0e052.tar.xz
Whoops. There's a 0 where there should be a 1.
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 1f572594..7317982c 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -65,7 +65,7 @@ pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg)
{
pmpkg_t* newpkg;
- if((newpkg = calloc(0, sizeof(pmpkg_t))) == NULL) {
+ if((newpkg = calloc(1, sizeof(pmpkg_t))) == NULL) {
_alpm_log(PM_LOG_ERROR, _("malloc failure: could not allocate %d bytes"), sizeof(pmpkg_t));
RET_ERR(PM_ERR_MEMORY, NULL);
}