diff options
author | Sascha Schumann <sas@php.net> | 2002-11-06 17:59:03 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-11-06 17:59:03 +0000 |
commit | 3037b35b31a55d4a693a7ace1aa7138bccb524a3 (patch) | |
tree | a11dba457541e5a443e59a44d670513cdfb3339c /ext/dba/dba_db3.c | |
parent | 10a861f93c9642f4aefc3ccf36ce7c8d8309d5ef (diff) | |
download | php-git-3037b35b31a55d4a693a7ace1aa7138bccb524a3.tar.gz |
emalloc never returns 0, so we can simplify the code paths.
also replace ecalloc with emalloc+memset, so that the latter can be inlined.
Diffstat (limited to 'ext/dba/dba_db3.c')
-rw-r--r-- | ext/dba/dba_db3.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c index 5dd3af58f7..df9396dede 100644 --- a/ext/dba/dba_db3.c +++ b/ext/dba/dba_db3.c @@ -78,10 +78,6 @@ DBA_OPEN_FUNC(db3) dba_db3_data *data; data = emalloc(sizeof(*data)); - if (!data) { - *error = "Out of memory"; - return FAILURE; - } data->dbp = dbp; data->cursor = NULL; info->dbf = data; |