diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-12-03 14:18:28 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-12-03 14:19:59 -0800 |
commit | 39c9a8bd5a278873e8ca00b0f50e2494a60deb26 (patch) | |
tree | 336ed01c8b25407151861a21efb53bc6ea83fb53 /upb/sink.h | |
parent | 177212c82f62e86e67bca69d1dbcf9d39d9123c4 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |