diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-01-25 10:07:47 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-01-25 10:07:47 -0800 |
commit | 2c24cbb108bbda296f01e7628028b1dcb2b9516b (patch) | |
tree | daa31a93b2c7d45de2df344eb2ec6e73b635bdb7 /core/upb.c | |
parent | 93381f1411def0dba5677b71cd4df859d99777f3 (diff) |
More work on decoder and stdio bytesrc/bytesink.
Diffstat (limited to 'core/upb.c')
-rw-r--r-- | core/upb.c | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -41,16 +41,13 @@ const upb_type_info upb_types[] = { }; void upb_seterr(upb_status *status, enum upb_status_code code, - const char *msg, ...) -{ - if(upb_ok(status)) { // The first error is the most interesting. - status->code = code; - upb_string_recycle(&status->str); - va_list args; - va_start(args, msg); - upb_string_vprintf(status->str, msg, args); - va_end(args); - } + const char *msg, ...) { + status->code = code; + upb_string_recycle(&status->str); + va_list args; + va_start(args, msg); + upb_string_vprintf(status->str, msg, args); + va_end(args); } void upb_copyerr(upb_status *to, upb_status *from) |