From 0fb64a43267eec25e5785f2117eaf89cdff3a6ee Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 13 Jun 2016 15:04:58 +0200 Subject: fix shquote for empty strings --- xe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xe.c') 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" -- cgit 1.4.1