This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16.
View the commit online.
commit e436edb5c955d544296a9ca49ed79f4b1077deae
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue Jun 27 06:07:07 2023 +0200
Fix a couple of bugs in new quoting/comment handling
---
src/string.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/string.c b/src/string.c
index 425e8847..89cced1c 100644
--- a/src/string.c
+++ b/src/string.c
@@ -150,7 +150,7 @@ Estrtrim2(char *s)
{
int len, len2, ch, quote;
- while (isspace(*s) == ' ')
+ while (isspace(*s))
s++;
quote = '\0';
@@ -167,7 +167,10 @@ Estrtrim2(char *s)
goto got_len;
case '\'':
case '"':
- quote = (ch == quote) ? '\0' : ch;
+ if (!quote)
+ quote = ch;
+ else if (ch == quote)
+ quote = '\0';
break;
case '#':
if (quote)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.