aboutsummaryrefslogtreecommitdiff
path: root/games/gzdoom/fix_zipdir.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-11-15 15:08:59 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-22 01:14:26 +0700
commit4cd83fb34670f44ecf0f186e0fb2b28c57215bbb (patch)
treea80778ee19e1ef33091cc490f0e573a704fa17e4 /games/gzdoom/fix_zipdir.diff
parenteab6ddbb153fe5e3774fc98f6181d54f82e23a9f (diff)
games/gzdoom: Add missing patch.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/gzdoom/fix_zipdir.diff')
-rw-r--r--games/gzdoom/fix_zipdir.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/gzdoom/fix_zipdir.diff b/games/gzdoom/fix_zipdir.diff
new file mode 100644
index 0000000000000..88fb01696685f
--- /dev/null
+++ b/games/gzdoom/fix_zipdir.diff
@@ -0,0 +1,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;
+ }
+ }