Whoops. There's a 0 where there should be a 1.

This commit is contained in:
Aaron Griffin 2007-01-19 18:06:37 +00:00
parent d27e5efec9
commit 77f6bcfa3d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}