about summary refs log tree commit diff
path: root/xe.c
diff options
context:
space:
mode:
Diffstat (limited to 'xe.c')
-rw-r--r--xe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xe.c b/xe.c
index 11a5963..a0e7728 100644
--- a/xe.c
+++ b/xe.c
@@ -113,7 +113,8 @@ mywait()
 static void
 shquote(const char *s)
 {
-	if (!strpbrk(s, "\001\002\003\004\005\006\007\010"
+	if (*s &&
+	    !strpbrk(s, "\001\002\003\004\005\006\007\010"
 	                "\011\012\013\014\015\016\017\020"
 	                "\021\022\023\024\025\026\027\030"
 	                "\031\032\033\034\035\036\037\040"