summaryrefslogtreecommitdiff
path: root/ext/dba/dba_dbm.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-05 14:46:36 +0000
committerMarcus Boerger <helly@php.net>2002-11-05 14:46:36 +0000
commit177b24a44ee3b0ff39889a1ef1f896edf559a389 (patch)
treea72933d329f02221d61f564caa9c4423e7cb6a5f /ext/dba/dba_dbm.c
parent41a77bccba8f597d694f5b66b289f1bba6529a26 (diff)
downloadphp-git-177b24a44ee3b0ff39889a1ef1f896edf559a389.tar.gz
Why did open fail?
Diffstat (limited to 'ext/dba/dba_dbm.c')
-rw-r--r--ext/dba/dba_dbm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dba/dba_dbm.c b/ext/dba/dba_dbm.c
index 0eea524ccb..5763fad41e 100644
--- a/ext/dba/dba_dbm.c
+++ b/ext/dba/dba_dbm.c
@@ -79,6 +79,10 @@ DBA_OPEN_FUNC(dbm)
}
info->dbf = ecalloc(sizeof(dba_dbm_data), 1);
+ if (!info->dbf) {
+ *error = "Out of memory";
+ return FAILURE;
+ }
return SUCCESS;
}