summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pacman/query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index a8417570..119764bc 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -161,7 +161,8 @@ static int query_fileowner(alpm_list_t *targets)
size_t len, is_dir;
unsigned int found = 0;
- if((filename = strdup(t->data)) == NULL) {
+ filename = strdup(t->data);
+ if(filename == NULL || strcmp(filename, "") == 0) {
goto targcleanup;
}