summaryrefslogtreecommitdiffstats
path: root/games/gzdoom/fix_zipdir.diff
blob: 88fb01696685f6716a175020b6cfe0df836143c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/tools/zipdir/zipdir.c
+++ b/tools/zipdir/zipdir.c
@@ -781,6 +781,8 @@
			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;
			}
		}