diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-01-07 18:02:09 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-01-07 18:02:09 -0800 |
commit | 87fc2c516bff207f880c71526926842fd8dcc77e (patch) | |
tree | 8b9e8685170e227c927454af47f7535077295afd /upb/upb.c | |
parent | d18475ae57dc62fc6dc8d9e32ffa0ce571df00bf (diff) |
Changes from Google-internal development.
* JSON parser expanded to handle split buffers.
* bugfix to the protobuf decoder.
Diffstat (limited to 'upb/upb.c')
-rw-r--r-- | upb/upb.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -32,8 +32,10 @@ static void nullz(upb_status *status) { } void upb_status_clear(upb_status *status) { - upb_status blank = UPB_STATUS_INIT; - upb_status_copy(status, &blank); + if (!status) return; + status->ok_ = true; + status->code_ = 0; + status->msg[0] = '\0'; } bool upb_ok(const upb_status *status) { return status->ok_; } |