summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-09-19 22:16:01 +0200
committerNikita Popov <nikic@php.net>2014-09-19 23:39:07 +0200
commit37aaccad7d8b9428c69f8c03806e1635575f216b (patch)
tree4c7ed96fb8f9082224df6c3420a3f1b589d4cc57 /ext/json
parent070667de8db929454aee13c5185b165554c00c55 (diff)
downloadphp-git-37aaccad7d8b9428c69f8c03806e1635575f216b.tar.gz
Use inline functions for most of smart_str
smart_str_free_ex no longer exists, always use smart_str_free instead. smart_str_alloc no longer requires a newlen variable to be in scope, instead it returns the new length.
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 4b4522ed30..485d14d11b 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -384,7 +384,7 @@ static void json_escape_string(smart_str *buf, char *s, size_t len, int options
{
int status;
unsigned int us, next_us = 0;
- size_t pos, checkpoint, newlen;
+ size_t pos, checkpoint;
if (len == 0) {
smart_str_appendl(buf, "\"\"", 2);