From a84b320b164ec430806795df28d4b6fd281c43b4 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 10 May 2016 15:06:40 +0200 Subject: Reverting "Don't follow the NULL pointer." There are several other instances of accessing NULL, both in permdb.c and filebuffer.c. Fixing one isn't very helpful. This reverts commit 2a63ac24a6c151b47e64a023965eab57ae9b1493. --- c_src/permdb.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/c_src/permdb.c b/c_src/permdb.c index a9df1dc..47c9641 100644 --- a/c_src/permdb.c +++ b/c_src/permdb.c @@ -430,10 +430,6 @@ permdb_alloc(const char *dbpath) } permdb_object *state = malloc(sizeof(permdb_object)); - if (state == NULL) { - return NULL; - } - state->datafile = bf_open(dbpath, O_RDWR|O_CREAT, "datafile"); state->indexfile = bf_open(idxpath, O_RDWR|O_CREAT, "indexfile"); -- cgit v1.1