mirror of
https://github.com/vivier/EMILE.git
synced 2024-07-31 23:29:05 +00:00
return 0 instead of -1 if file is not compressed
This commit is contained in:
parent
01cf507368
commit
ed025a24a8
@ -46,9 +46,12 @@ int emile_get_uncompressed_size(char *file)
|
|||||||
close(tube[1]);
|
close(tube[1]);
|
||||||
|
|
||||||
ret = read(tube[0], buffer, 1024);
|
ret = read(tube[0], buffer, 1024);
|
||||||
if (ret <= 0)
|
if (ret == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (ret == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* skip first line */
|
/* skip first line */
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user