diff options
author | Peter Stephenson <pws@zsh.org> | 2015-12-08 15:08:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-12-08 15:08:24 +0000 |
commit | 7f5b2f570961cd9b20f322d7f45318878a1a4b29 (patch) | |
tree | 88b737db487626fb492473126c21fed356efc1e9 /Src | |
parent | 4105f79a3a9b5a85c4ce167865e5ac661be160dc (diff) | |
download | zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.gz zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.xz zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.zip |
37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 1554fa0ae..6d0f88d6d 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -5940,7 +5940,7 @@ quotedzputs(char const *s, FILE *stream) /* check for empty string */ if(!*s) { if (!stream) - return "''"; + return dupstring("''"); fputs("''", stream); return NULL; } |