X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libctf%2Fctf-archive.c;h=ed1483ade75af7a87b24675e18efa1e2c9f70865;hb=1087441f0712681bf0c30d104870ea299aa326c1;hp=979641cc1e728b76ee0956fa7fd5f9514389905f;hpb=f046147d59aab0c8b6f00cd182f34b42ac8915e8;p=deliverable%2Fbinutils-gdb.git diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c index 979641cc1e..ed1483ade7 100644 --- a/libctf/ctf-archive.c +++ b/libctf/ctf-archive.c @@ -267,6 +267,9 @@ arc_write_one_ctf (ctf_file_t * f, int fd, size_t threshold) size_t ctfsz_len; int (*writefn) (ctf_file_t * fp, int fd); + if (ctf_serialize (f) < 0) + return f->ctf_errno * -1; + if ((off = lseek (fd, 0, SEEK_CUR)) < 0) return errno * -1;