Skip to content

Commit a2fb0bc

Browse files
committed
fix isOomError() check in encoder
- Fix
1 parent 7605557 commit a2fb0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cborencoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ CborError cbor_encode_tag(CborEncoder *encoder, CborTag tag)
382382
static CborError encode_string(CborEncoder *encoder, size_t length, uint8_t shiftedMajorType, const void *string)
383383
{
384384
CborError err = encode_number(encoder, length, shiftedMajorType);
385-
if (err && !isOomError(err))
385+
if (err && isOomError(err))
386386
return err;
387387
return append_to_buffer(encoder, string, length);
388388
}

0 commit comments

Comments
 (0)