about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-12-08 15:08:24 +0000
committerPeter Stephenson <pws@zsh.org>2015-12-08 15:08:24 +0000
commit7f5b2f570961cd9b20f322d7f45318878a1a4b29 (patch)
tree88b737db487626fb492473126c21fed356efc1e9 /Src/utils.c
parent4105f79a3a9b5a85c4ce167865e5ac661be160dc (diff)
downloadzsh-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/utils.c')
-rw-r--r--Src/utils.c2
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;
     }