summaryrefslogtreecommitdiff
path: root/graphics/swftools/files/patch-GlobalParams.cc
blob: e12c227ef419c47b2b9de04214751b82a0533527 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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