summaryrefslogtreecommitdiff
path: root/upb/sink.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-12-03 14:18:28 -0800
committerJosh Haberman <jhaberman@gmail.com>2014-12-03 14:19:59 -0800
commit39c9a8bd5a278873e8ca00b0f50e2494a60deb26 (patch)
tree336ed01c8b25407151861a21efb53bc6ea83fb53 /upb/sink.h
parent177212c82f62e86e67bca69d1dbcf9d39d9123c4 (diff)
Sync from Google-internal development.
Most notably, a JSON parser is now provided.
Diffstat (limited to 'upb/sink.h')
-rw-r--r--upb/sink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/sink.h b/upb/sink.h
index 4e3216b..479aaff 100644
--- a/upb/sink.h
+++ b/upb/sink.h
@@ -236,7 +236,7 @@ UPB_INLINE void upb_bytessink_reset(upb_bytessink *s, const upb_byteshandler *h,
UPB_INLINE bool upb_bytessink_start(upb_bytessink *s, size_t size_hint,
void **subc) {
- *subc = NULL;
+ *subc = s->closure;
if (!s->handler) return true;
upb_startstr_handlerfunc *start =
(upb_startstr_handlerfunc *)s->handler->table[UPB_STARTSTR_SELECTOR].func;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback