summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/files.c b/src/pacman/files.c
index 5baf5e57..fb2f997e 100644
--- a/src/pacman/files.c
+++ b/src/pacman/files.c
@@ -206,10 +206,11 @@ static void dump_file_list(alpm_pkg_t *pkg) {
static int files_list(alpm_list_t *syncs, alpm_list_t *targets) {
alpm_list_t *i, *j;
- int ret = 0, found = 0;
+ int ret = 0;
if(targets != NULL) {
for(i = targets; i; i = alpm_list_next(i)) {
+ int found = 0;
char *targ = i->data;
char *repo = NULL;
char *c = strchr(targ, '/');