Fix: null handling for cluster file paths didn't work after merge

This commit is contained in:
A.J. Beamon 2019-01-11 10:04:05 -08:00
parent 679a0e27fd
commit 627b785a24
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ FDBFuture* fdb_cluster_create_database_v609( FDBCluster* c, uint8_t const* db_na
extern "C" DLLEXPORT
fdb_error_t fdb_create_database( const char* cluster_file_path, FDBDatabase** out_database ) {
CATCH_AND_RETURN(
*out_database = (FDBDatabase*)API->createDatabase( cluster_file_path ).extractPtr();
*out_database = (FDBDatabase*)API->createDatabase( cluster_file_path ? cluster_file_path : "" ).extractPtr();
);
}