summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 481ab756ed..1381a3a5ff 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -426,7 +426,7 @@ static void json_escape_string(smart_str *buf, char *s, size_t len, int options)
if (json_utf8_to_utf16(NULL, s, len) < 0) {
JSON_G(error_code) = PHP_JSON_ERROR_UTF8;
smart_str_appendl(buf, "null", 4);
- return;
+ return;
}
}
@@ -551,7 +551,7 @@ static void json_escape_string(smart_str *buf, char *s, size_t len, int options)
break;
}
} while (pos < len || next_us);
-
+
smart_str_appendc(buf, '"');
}
/* }}} */