aboutsummaryrefslogblamecommitdiff
path: root/games/toppler/files/patch-main.cc
blob: fcf7d9921954243bb75f23a69ea8d06681b686ad (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                 
--- main.cc.orig	2012-12-22 11:02:06 UTC
+++ main.cc
@@ -96,7 +96,8 @@ int main(int argc, char *argv[]) {
 
   DIR *dir = opendir("locale");
   bindtextdomain("toppler", dir == NULL ? LOCALEDIR : "locale");
-  closedir(dir);
+  if (dir)
+	  closedir(dir);
   textdomain("toppler");
 #endif