- Take maintainership - Fix LICENSE - Add LICENSE_FILE - Switch to USES=localbase - Update WWW
12 lines
292 B
C++
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
|
|
|