From 18130bed7fa032513261d426b8c3915cf11e20c1 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 17 Sep 2015 21:44:14 -0700 Subject: 36552 plus test: fix Nularg string in quotestring(QT_DOLLARS) --- Src/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index ca68eae32..d5fd88c00 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -5384,6 +5384,12 @@ quotestring(const char *s, char **e, int instring) "BUG: bad quote type in quotestring"); 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. -- cgit 1.4.1