summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/membuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/membuffer.c b/core/membuffer.c
index aa08bb5ea..18a0203fc 100644
--- a/core/membuffer.c
+++ b/core/membuffer.c
@@ -213,7 +213,7 @@ void put_quoted(struct membuffer *b, const char *text, int is_attribute, int is_
{
const char *p = text;
- for (;;) {
+ for (;text;) {
const char *escape;
switch (*p++) {