--- lib/pdf/xpdf/GlobalParams.cc.orig 2012-04-08 12:26:34.000000000 -0500 +++ lib/pdf/xpdf/GlobalParams.cc 2017-10-21 00:03:04.000000000 -0500 @@ -922,9 +922,9 @@ 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 != NULL) path->append('/'); - else if(pos2>=0) + else if (pos2 != NULL) path->append('\\'); else #ifdef WIN32