c3115a65e8
Help and ok, ajacoutot@.
14 lines
387 B
Plaintext
14 lines
387 B
Plaintext
$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
|
|
|