summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-01-30 09:35:40 +0100
committerAaron Griffin <aaron@archlinux.org>2007-01-30 09:35:40 +0100
commit211946739260ad8f6af1f99784c14fca97bf866f (patch)
tree44645e4d1e76819acf157f7571cf86c52c66391f /src
parent958a83818954ffd28056d470d96ab5a99cbfe416 (diff)
downloadpacman-211946739260ad8f6af1f99784c14fca97bf866f.tar.gz
pacman-211946739260ad8f6af1f99784c14fca97bf866f.tar.xz
Well that silly memory clobber was plain old "uninitialized data" - fixed
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 36bc22f5..26d10bc2 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -405,7 +405,7 @@ int pacman_sync(alpm_list_t *targets)
{
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) {