diff options
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index 21174f7..491fae1 100644 --- a/src/database.c +++ b/src/database.c @@ -10,6 +10,9 @@ int database_init ( database_t* _database ) { unsigned int i = 0; size_t rr_size; + if ( !_database ) + return 1; + /* Initialize 2D array of tree_node pointers, paranoia style */ if ( !( _database->zone = malloc( sizeof( tree_node_t** ) * DB_CLASS_LEN ) ) ) return 1; |