Fix the build with clang.

Submitted by:	Pawel Worach
This commit is contained in:
Koop Mast 2012-09-03 22:57:42 +00:00
parent 1fdf65f6d6
commit 0cffb26844
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303628

View File

@ -1,12 +1,12 @@
--- libs/database.c.orig Sat May 25 23:17:10 2002
+++ libs/database.c Sat May 25 23:18:01 2002
@@ -73,7 +73,8 @@
--- libs/database.c.orig 2002-06-02 06:03:10.000000000 +0000
+++ libs/database.c 2012-09-03 22:39:28.000000000 +0000
@@ -131,7 +131,8 @@
/* create locale directories and symlinks */
- dir = opendir(data_dir);
+ if ((dir = opendir(data_dir)) == NULL)
+ return;
+ return 1;
while((dir_ent = readdir(dir)) != NULL)
{