summaryrefslogtreecommitdiff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-09-17 21:44:14 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-09-17 21:44:14 -0700
commit18130bed7fa032513261d426b8c3915cf11e20c1 (patch)
tree0ccb60829e871c2f8752b2931215f3b80c10cc1d /Src/utils.c
parent9955bbdb9faeac388abec68c6b5b976bce27df92 (diff)
downloadzsh-18130bed7fa032513261d426b8c3915cf11e20c1.tar.gz
zsh-18130bed7fa032513261d426b8c3915cf11e20c1.zip
36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index ca68eae32..d5fd88c00 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -5385,6 +5385,12 @@ quotestring(const char *s, char **e, int instring)
u = s;
if (instring == QT_DOLLARS) {
/*
+ * The only way to get Nularg here is when
+ * it is placeholding for the empty string?
+ */
+ if (inull(*u))
+ *u++;
+ /*
* As we test for printability here we need to be able
* to look for multibyte characters.
*/