diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-13 15:04:58 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-06-13 15:04:58 +0200 |
commit | 0fb64a43267eec25e5785f2117eaf89cdff3a6ee (patch) | |
tree | 44fd668bb254e105bf8729b4196a8ec89b674dbb /xe.c | |
parent | fdd24f0ab57ab3261bda31162575ecca769e0373 (diff) | |
download | xe-0fb64a43267eec25e5785f2117eaf89cdff3a6ee.tar.gz xe-0fb64a43267eec25e5785f2117eaf89cdff3a6ee.tar.xz xe-0fb64a43267eec25e5785f2117eaf89cdff3a6ee.zip |
fix shquote for empty strings
Diffstat (limited to 'xe.c')
-rw-r--r-- | xe.c | 3 |
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" |