openbsd-ports/games/toppler/patches/patch-main_cc

14 lines
387 B
Plaintext
Raw Normal View History

$OpenBSD: patch-main_cc,v 1.1 2007/10/27 15:24:30 kili Exp $
--- main.cc.orig Thu Jul 19 16:26:35 2007
+++ main.cc Sat Oct 13 23:24:31 2007
@@ -96,7 +96,8 @@ int main(int argc, char *argv[]) {
DIR *dir = opendir("locale");
bindtextdomain("toppler", dir == NULL ? LOCALEDIR : "locale");
- closedir(dir);
+ if (dir != NULL)
+ closedir(dir);
textdomain("toppler");
#endif