summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-11-18 04:47:55 +0100
committerDan McGee <dan@archlinux.org>2008-11-18 04:47:55 +0100
commitf7192b595881103f145a118d63d1b342ffd740b4 (patch)
tree85a378fd5bf5b665cc48954eaff826f903543826 /src
parent2890114600baefb6cb1dde513ca3107258b64c92 (diff)
downloadpacman-f7192b595881103f145a118d63d1b342ffd740b4.tar.gz
pacman-f7192b595881103f145a118d63d1b342ffd740b4.tar.xz
Minor code cleanups
Mostly noticed when compiling libalpm/pacman with ICC. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 8d0c529a..00e477af 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -551,6 +551,7 @@ static int sync_trans(alpm_list_t *targets)
int retval = 0;
alpm_list_t *data = NULL;
alpm_list_t *sync_dbs = alpm_option_get_syncdbs();
+ alpm_list_t *packages = NULL;
/* Step 1: create a new transaction... */
if(trans_init(PM_TRANS_TYPE_SYNC, config->flags) == -1) {
@@ -659,7 +660,7 @@ static int sync_trans(alpm_list_t *targets)
goto cleanup;
}
- alpm_list_t *packages = alpm_trans_get_pkgs();
+ packages = alpm_trans_get_pkgs();
if(packages == NULL) {
/* nothing to do: just exit without complaining */
printf(_(" local database is up to date\n"));