[pacman-dev] CVS update of pacman-lib/src/pacman (sync.c)

Aaron Griffin aaron at archlinux.org
Tue Jan 30 03:35:40 EST 2007


    Date: Tuesday, January 30, 2007 @ 03:35:40
  Author: aaron
    Path: /home/cvs-pacman/pacman-lib/src/pacman

Modified: sync.c (1.101 -> 1.102)

Well that silly memory clobber was plain old "uninitialized data" - fixed


--------+
 sync.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Index: pacman-lib/src/pacman/sync.c
diff -u pacman-lib/src/pacman/sync.c:1.101 pacman-lib/src/pacman/sync.c:1.102
--- pacman-lib/src/pacman/sync.c:1.101	Tue Jan 30 00:41:13 2007
+++ pacman-lib/src/pacman/sync.c	Tue Jan 30 03:35:40 2007
@@ -405,7 +405,7 @@
 {
 	int confirm = 0;
 	int retval = 0;
-	alpm_list_t *packages, *data, *i, *j, *k, *sync_dbs;
+	alpm_list_t *packages, *data = NULL, *i, *j, *k, *sync_dbs;
 
 	sync_dbs = alpm_option_get_syncdbs();
 	if(sync_dbs == NULL || alpm_list_count(sync_dbs) == 0) {




More information about the pacman-dev mailing list