Use UPB_SETJMP macro

PiperOrigin-RevId: 487009840
pull/13171/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent aec12a466f
commit 721c284959
  1. 2
      upb/json/encode.c

@ -781,7 +781,7 @@ size_t upb_JsonEncode(const upb_Message* msg, const upb_MessageDef* m,
e.status = status;
e.arena = NULL;
if (setjmp(e.err)) return -1;
if (UPB_SETJMP(e.err)) return -1;
jsonenc_msgfield(&e, msg, m);
if (e.arena) upb_Arena_Free(e.arena);

Loading…
Cancel
Save