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:
parent
d27e5efec9
commit
77f6bcfa3d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user