Skip to content

Commit 472180b

Browse files
victoryforceTurboGit
authored andcommitted
Minor readability fix
1 parent 1c10570 commit 472180b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4330,7 +4330,7 @@ dt_database_t *dt_database_init(const char *alternative, const gboolean load_dat
43304330

43314331

43324332
/* opening / creating database */
4333-
if(sqlite3_open(db->dbfilename_library, &db->handle))
4333+
if(sqlite3_open(db->dbfilename_library, &db->handle) != SQLITE_OK)
43344334
{
43354335
dt_print(DT_DEBUG_ALWAYS, "[init] could not find database %s%s%s",
43364336
dbname ? " `" : "", dbname ? dbname : "", dbname ? "'!" : "");

0 commit comments

Comments
 (0)