openbsd-ports/textproc/scrollkeeper/patches/patch-libs_database_c
2002-11-30 04:41:29 +00:00

14 lines
436 B
Plaintext

$OpenBSD: patch-libs_database_c,v 1.1 2002/11/30 04:41:29 marcm Exp $
--- libs/database.c.orig Tue Sep 10 11:53:51 2002
+++ libs/database.c Tue Sep 10 11:56:45 2002
@@ -131,7 +131,8 @@ int create_database_directory(char *scro
/* create locale directories and symlinks */
- dir = opendir(data_dir);
+ if ((dir = opendir(data_dir)) == NULL)
+ return;
while((dir_ent = readdir(dir)) != NULL)
{