freebsd-ports/games/toppler/files/patch-main.cc
Dmitry Marakasov cb78a94c65 - Update to 1.1.6
- Take maintainership
- Fix LICENSE
- Add LICENSE_FILE
- Switch to USES=localbase
- Update WWW
2017-01-31 18:35:27 +00:00

12 lines
292 B
C++

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