summaryrefslogtreecommitdiff
path: root/core/upb.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb.c')
-rw-r--r--core/upb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/upb.c b/core/upb.c
index 05e9b7d..da2a0f0 100644
--- a/core/upb.c
+++ b/core/upb.c
@@ -60,9 +60,8 @@ void upb_copyerr(upb_status *to, upb_status *from)
}
void upb_clearerr(upb_status *status) {
- status->code = UPB_STATUS_OK;
- upb_string_unref(status->str);
- status->str = NULL;
+ status->code = UPB_OK;
+ upb_string_recycle(&status->str);
}
void upb_printerr(upb_status *status) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback