mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
- fixed zipdir inability to update empty zip file
https://forum.zdoom.org/viewtopic.php?t=70468
This commit is contained in:
parent
ff9a56dc0b
commit
ecf0701481
1 changed files with 2 additions and 0 deletions
|
@ -781,6 +781,8 @@ void write_zip(const char *zipname, dir_tree_t *trees, int update)
|
|||
if (central_dir == NULL)
|
||||
{
|
||||
fprintf(stderr, "Could not read central directory from %s. (Is it a zipfile?)\n", zipname);
|
||||
fclose(ozip);
|
||||
ozip = NULL;
|
||||
update = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue