diff options
Diffstat (limited to 'src/ejson/yajl/yajl_encode.c')
-rw-r--r-- | src/ejson/yajl/yajl_encode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ejson/yajl/yajl_encode.c b/src/ejson/yajl/yajl_encode.c index ad5b1c591..d5b2b8f0d 100644 --- a/src/ejson/yajl/yajl_encode.c +++ b/src/ejson/yajl/yajl_encode.c @@ -173,6 +173,13 @@ void yajl_string_decode(yajl_buf buf, const unsigned char * str, Utf32toUtf8(codepoint, utf8Buf); unescaped = utf8Buf; + + if (codepoint == 0) { + yajl_buf_append(buf, unescaped, 1); + beg = ++end; + continue; + } + break; } default: |