We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34625da commit cbed056Copy full SHA for cbed056
ext/dba/dba_db2.c
@@ -67,7 +67,7 @@ DBA_OPEN_FUNC(db2)
67
filemode = Z_LVAL_PP(info->argv[0]);
68
}
69
70
- if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
+ if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
71
info->dbf = malloc(sizeof(dba_db2_data));
72
memset(info->dbf, 0, sizeof(dba_db2_data));
73
((dba_db2_data *) info->dbf)->dbp = dbp;
0 commit comments