summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db2.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-04-10 11:12:19 +0000
committerSascha Schumann <sas@php.net>2002-04-10 11:12:19 +0000
commit1eb8ee6f6d7b9bf6fa11541a0f5373e7914fb501 (patch)
tree2d697087058c5f7b39c33f45bee905a3feeb6403 /ext/dba/dba_db2.c
parent1ed150172a9f1d036a28b7cc63358d91bd34b496 (diff)
downloadphp-git-1eb8ee6f6d7b9bf6fa11541a0f5373e7914fb501.tar.gz
too quick. full speed back.
Diffstat (limited to 'ext/dba/dba_db2.c')
-rw-r--r--ext/dba/dba_db2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c
index d3ecfa3b67..bb7cf470d2 100644
--- a/ext/dba/dba_db2.c
+++ b/ext/dba/dba_db2.c
@@ -67,7 +67,7 @@ DBA_OPEN_FUNC(db2)
filemode = Z_LVAL_PP(info->argv[0]);
}
- if(db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
+ if(!db_open(info->path, type, gmode, filemode, NULL, NULL, &dbp)) {
info->dbf = malloc(sizeof(dba_db2_data));
memset(info->dbf, 0, sizeof(dba_db2_data));
((dba_db2_data *) info->dbf)->dbp = dbp;