Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cbortojson.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ static CborError text_string_to_escaped(char **str, CborValue *it)
/* success */
if (!*str)
*str = strdup(""); // wasteful, but very atypical
return cbor_value_finish_string_iteration(it);
err = cbor_value_finish_string_iteration(it);
if (likely(err == CborNoError))
return CborNoError;
}

cbor_free(*str);
Expand Down
Loading