return 0 instead of -1 if file is not compressed

This commit is contained in:
Laurent Vivier 2004-12-25 01:42:12 +00:00
parent 01cf507368
commit ed025a24a8

View File

@ -46,9 +46,12 @@ int emile_get_uncompressed_size(char *file)
close(tube[1]);
ret = read(tube[0], buffer, 1024);
if (ret <= 0)
if (ret == -1)
return -1;
if (ret == 0)
return 0;
/* skip first line */
i = 0;