summaryrefslogtreecommitdiff
path: root/games/flightgear-terragear/files/patch-tg_shapefile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'games/flightgear-terragear/files/patch-tg_shapefile.cxx')
-rw-r--r--games/flightgear-terragear/files/patch-tg_shapefile.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/flightgear-terragear/files/patch-tg_shapefile.cxx b/games/flightgear-terragear/files/patch-tg_shapefile.cxx
new file mode 100644
index 000000000000..46e249f09b51
--- /dev/null
+++ b/games/flightgear-terragear/files/patch-tg_shapefile.cxx
@@ -0,0 +1,11 @@
+--- src/Lib/terragear/tg_shapefile.cxx.orig 2017-10-07 06:58:20 UTC
++++ src/Lib/terragear/tg_shapefile.cxx
+@@ -152,7 +152,7 @@
+ }
+
+ // close after each write
+- if ( ds_id >= 0 ) {
++ if ( ds_id >= (void *)0 ) {
+ ds_id = tgShapefile::CloseDatasource( ds_id );
+ }
+ }