[pacman-dev] CVS update of pacman-lib/lib/libalpm (package.c)
Aaron Griffin
aaron at archlinux.org
Fri Jan 19 13:06:37 EST 2007
Date: Friday, January 19, 2007 @ 13:06:37
Author: aaron
Path: /home/cvs-pacman/pacman-lib/lib/libalpm
Modified: package.c (1.46 -> 1.47)
Whoops. There's a 0 where there should be a 1.
-----------+
package.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pacman-lib/lib/libalpm/package.c
diff -u pacman-lib/lib/libalpm/package.c:1.46 pacman-lib/lib/libalpm/package.c:1.47
--- pacman-lib/lib/libalpm/package.c:1.46 Fri Jan 19 13:05:19 2007
+++ pacman-lib/lib/libalpm/package.c Fri Jan 19 13:06:37 2007
@@ -65,7 +65,7 @@
{
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);
}
More information about the pacman-dev
mailing list