diff options
Diffstat (limited to 'src/pacman/query.c')
-rw-r--r-- | src/pacman/query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c index 6f4f7c4c..71c02c71 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -106,8 +106,8 @@ int pacman_query(list_t *targets) int done = 0; if(pmo_q_search) { - for(targ = targets; targ; targ = targ->next) { - db_search(db_local, "local", targ->data); + if(db_search(db_local, "local", targets)) { + return(1); } return(0); } |