1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/graphics/swftools/files/patch-GlobalParams.cc
Dirk Meyer 10c6b465cc - fix build with clang4
PR:		216216
2017-01-21 16:11:02 +00:00

15 lines
476 B
C++

--- 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