opnsense-ports/textproc/scrollkeeper/files/patch-libs_database.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

12 lines
343 B
C

--- 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 1;
while((dir_ent = readdir(dir)) != NULL)
{