summaryrefslogtreecommitdiff
path: root/core/upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb.c')
-rw-r--r--core/upb.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/core/upb.c b/core/upb.c
index ff2d47e..525c8a8 100644
--- a/core/upb.c
+++ b/core/upb.c
@@ -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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback