1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix segfault in saga_cmd

PR:		ports/161781
Submitted by:	Rainer Hurling <rhurlin@gwdg.de> (maintainer)
This commit is contained in:
Pawel Pekala 2011-10-19 20:46:32 +00:00
parent 793023686d
commit 1e16aa51e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=283942
2 changed files with 14 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= saga
PORTVERSION= 2.0.7
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]*$//}/SAGA%20${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}

View File

@ -0,0 +1,13 @@
--- src/saga_core/saga_cmd/saga_cmd.cpp_orig 2011-05-17 15:36:45.000000000 +0200
+++ src/saga_core/saga_cmd/saga_cmd.cpp 2011-10-17 08:25:58.000000000 +0200
@@ -126,7 +126,11 @@
#endif
//---------------------------------------------------------
+#if wxCHECK_VERSION(2, 8, 11)
+ if( !wxInitialize( argc, argv ) )
+#else
if( !wxInitialize() )
+#endif
{
Print_Error(SG_T("initialisation failed"));