We are using MCCP in our SWR, and I guess we missed something in the install. Running it through valgrind, I'm getting messages such as this:
I assume this means that we are not initializing something somewhere. The line that calls delfate in write_to_descriptor is We have d->out_comress initialized to NULL, but I know very little about MCCPs inner workings, and I couldn't find a man page on deflate. Anyone know what this is about?
Quote:
==15523== Conditional jump or move depends on uninitialised value(s)
==15523== at 0x4024C11C: (within /usr/lib/libz.so.1.2.1)
==15523== by 0x4024BC6E: (within /usr/lib/libz.so.1.2.1)
==15523== by 0x4024A585: deflate (in /usr/lib/libz.so.1.2.1)
==15523== by 0x80DC4C6: write_to_descriptor (comm.c:1832)
==15523== by 0x80DBF14: flush_buffer (comm.c:1637)
==15523== by 0x80DA2BC: game_loop (comm.c:841)
==15523== by 0x80D9378: main (comm.c:361)
==15523== Conditional jump or move depends on uninitialised value(s)
==15523== at 0x4024C11C: (within /usr/lib/libz.so.1.2.1)
==15523== by 0x4024BC6E: (within /usr/lib/libz.so.1.2.1)
==15523== by 0x4024A585: deflate (in /usr/lib/libz.so.1.2.1)
==15523== by 0x80DC4C6: write_to_descriptor (comm.c:1832)
==15523== by 0x80DBF14: flush_buffer (comm.c:1637)
==15523== by 0x80DA2BC: game_loop (comm.c:841)
==15523== by 0x80D9378: main (comm.c:361)
I assume this means that we are not initializing something somewhere. The line that calls delfate in write_to_descriptor is
if (d->out_compress->avail_out)
{
int status = deflate(d->out_compress, Z_SYNC_FLUSH);
if (status != Z_OK)
return FALSE;
}