summaryrefslogtreecommitdiffstats
path: root/src/query/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/query/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/query/main.c b/src/query/main.c
index 6674896..c625957 100644
--- a/src/query/main.c
+++ b/src/query/main.c
@@ -28,7 +28,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#if HAVE_LOCALE_H
+#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#include <errno.h>
@@ -355,7 +355,6 @@ searchfiles(const char *const *argv)
varbuf_add_char(&vb, '*');
varbuf_add_str(&vb, thisarg);
varbuf_add_char(&vb, '*');
- varbuf_end_str(&vb);
thisarg= vb.buf;
}
if (!strpbrk(thisarg, "*[?\\")) {