Skip to content

Commit cbed056

Browse files
author
Derick Rethans
committed
- Fix wrong logic (Thanks to Alan for noticing it)
1 parent 34625da commit cbed056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dba/dba_db2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ DBA_OPEN_FUNC(db2)
6767
filemode = Z_LVAL_PP(info->argv[0]);
6868
}
6969

70-
if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
70+
if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
7171
info->dbf = malloc(sizeof(dba_db2_data));
7272
memset(info->dbf, 0, sizeof(dba_db2_data));
7373
((dba_db2_data *) info->dbf)->dbp = dbp;

0 commit comments

Comments
 (0)