[pacman-dev] CVS update of pacman-lib/src/pacman (add.c remove.c)
Date: Tuesday, January 30, 2007 @ 23:42:39 Author: aaron Path: /home/cvs-pacman/pacman-lib/src/pacman Modified: add.c (1.25 -> 1.26) remove.c (1.25 -> 1.26) More uninitialized stuff... I believe these were removed at some point. Should be fixed. ----------+ add.c | 2 +- remove.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: pacman-lib/src/pacman/add.c diff -u pacman-lib/src/pacman/add.c:1.25 pacman-lib/src/pacman/add.c:1.26 --- pacman-lib/src/pacman/add.c:1.25 Wed Jan 24 03:51:51 2007 +++ pacman-lib/src/pacman/add.c Tue Jan 30 23:42:39 2007 @@ -38,7 +38,7 @@ int pacman_add(alpm_list_t *targets) { - alpm_list_t *i = targets, *data; + alpm_list_t *i = targets, *data = NULL; int retval = 0; if(targets == NULL) { Index: pacman-lib/src/pacman/remove.c diff -u pacman-lib/src/pacman/remove.c:1.25 pacman-lib/src/pacman/remove.c:1.26 --- pacman-lib/src/pacman/remove.c:1.25 Wed Jan 24 03:51:51 2007 +++ pacman-lib/src/pacman/remove.c Tue Jan 30 23:42:39 2007 @@ -39,7 +39,7 @@ int pacman_remove(alpm_list_t *targets) { - alpm_list_t *data, *i, *j, *finaltargs = NULL; + alpm_list_t *data = NULL, *i, *j, *finaltargs = NULL; int retval = 0; if(targets == NULL) {
participants (1)
-
Aaron Griffin