SVN revision: 14950
This commit is contained in:
tsauerbeck 2005-05-26 10:22:56 +00:00 committed by tsauerbeck
parent 27a62c33a5
commit e2acf51360
1 changed files with 2 additions and 3 deletions

View File

@ -866,12 +866,11 @@ eet_write(Eet_File *ef, char *name, void *data, int size, int compress)
if (compress)
{
uLongf buflen;
int ok;
/* compress the data with max compression */
buflen = (uLongf)data_size;
if ((ok = compress2((Bytef *)data2, &buflen, (Bytef *)data,
(uLong)size, 9)) != Z_OK)
if (compress2((Bytef *)data2, &buflen, (Bytef *)data,
(uLong)size, 9) != Z_OK)
{
free(name2);
free(data2);