1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

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

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