aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 986cccc..b94f7b7 100644
--- a/cbs.h
+++ b/cbs.h
@@ -781,7 +781,7 @@ pcquery(struct strv *vec, char *lib, int flags)
/* Remove trailing newline */
p[n - 1] = 0;
- switch (wordexp(p, &we, 0)) {
+ switch (wordexp(p, &we, WRDE_NOCMD)) {
case WRDE_BADCHAR:
case WRDE_BADVAL:
case WRDE_SYNTAX: