2 Nov
2015
2 Nov
'15
1:41 a.m.
Otherwise any invalid targets following a successful match will not get an error message. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> --- src/pacman/files.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pacman/files.c b/src/pacman/files.c index c2231cd..3dc915a 100644 --- a/src/pacman/files.c +++ b/src/pacman/files.c @@ -178,10 +178,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, '/'); -- 2.6.2