Changeset 509bca2


Ignore:
Timestamp:
03/13/07 15:29:24 (15 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
3198df4
Parents:
28d81c8
Message:

Fixed bug where 0 byte sized io_writes would cause the newly-created traces to contain crc-errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtraceio-zlib.c

    rec1e19c r509bca2  
    6767ssize_t libtrace_io_write(libtrace_io_t *io, const void *buf, size_t len)
    6868{
     69        /* gzip doesn't like writing 0 bytes - tends to break the
     70         * crc calculations */
     71        if (len == 0)
     72                return 0;
    6973        return (ssize_t)gzwrite(io->file,buf,(unsigned)len);
    7074}
Note: See TracChangeset for help on using the changeset viewer.