- fix build with clang4

PR:		216216
This commit is contained in:
Dirk Meyer 2017-01-21 16:11:02 +00:00
parent 726788f263
commit 10c6b465cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432055
2 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= swftools
PORTVERSION= 0.9.2
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://www.swftools.org/ \
http://www.c-s.li/ports/

View File

@ -0,0 +1,14 @@
--- lib/pdf/xpdf/GlobalParams.cc.orig 2012-04-08 17:26:34 UTC
+++ lib/pdf/xpdf/GlobalParams.cc
@@ -922,9 +922,9 @@ void GlobalParams::parseFile(GString *fi
char* p = pos1>pos2?pos1:pos2;
int pos = p ? p-cfgFileName : -1;
GString*path = new GString(new GString(cfgFileName), 0, (pos < 0 ? strlen(cfgFileName): pos));
- if(pos1>=0)
+ if(pos1!=0)
path->append('/');
- else if(pos2>=0)
+ else if(pos2!=0)
path->append('\\');
else
#ifdef WIN32