diff options
Diffstat (limited to 'libctf/ctf-serialize.c')
-rw-r--r-- | libctf/ctf-serialize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libctf/ctf-serialize.c b/libctf/ctf-serialize.c index 1061fff..75cac32 100644 --- a/libctf/ctf-serialize.c +++ b/libctf/ctf-serialize.c @@ -1705,7 +1705,8 @@ ctf_write_mem (ctf_dict_t *fp, size_t *size, size_t threshold) if (flip_endian) { - ctf_flip_header (hp, fp->ctf_serializing_is_btf, 0); + if (ctf_flip_header (hp, fp->ctf_serializing_is_btf, 0) <0) + goto err; /* errno is set for us. */ if (ctf_flip (fp, rawhp, src, fp->ctf_serializing_is_btf, 1) < 0) goto err; /* errno is set for us. */ } |