diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2015-09-17 21:44:14 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-09-17 21:44:14 -0700 |
commit | 18130bed7fa032513261d426b8c3915cf11e20c1 (patch) | |
tree | 0ccb60829e871c2f8752b2931215f3b80c10cc1d /Src | |
parent | 9955bbdb9faeac388abec68c6b5b976bce27df92 (diff) | |
download | zsh-18130bed7fa032513261d426b8c3915cf11e20c1.tar.gz zsh-18130bed7fa032513261d426b8c3915cf11e20c1.tar.xz zsh-18130bed7fa032513261d426b8c3915cf11e20c1.zip |
36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 6 |
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. */ |