diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:41:56 +0000 |
| commit | e2868b57885dac8a36593e2154c808038adc4cef (patch) | |
| tree | edb1421b5b3d4340a0e2538b996393874575b5f6 /ext/mnogosearch/php_mnogo.c | |
| parent | 72b356c1bccb511e9a3414cbfe6ff25b5a20b91f (diff) | |
| download | php-git-e2868b57885dac8a36593e2154c808038adc4cef.tar.gz | |
Removed pointless memory allocation checks.
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
| -rw-r--r-- | ext/mnogosearch/php_mnogo.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/mnogosearch/php_mnogo.c b/ext/mnogosearch/php_mnogo.c index 7a11442e50..0c0f7023e6 100644 --- a/ext/mnogosearch/php_mnogo.c +++ b/ext/mnogosearch/php_mnogo.c @@ -2265,9 +2265,7 @@ DLEXPORT PHP_FUNCTION(udm_cat_list) #else if((c=UdmCatList(Agent,cat))){ #endif - if (array_init(return_value)==FAILURE) { - RETURN_FALSE; - } + array_init(return_value); if (!(buf=calloc(1,UDMSTRSIZ+1))) { RETURN_FALSE; @@ -2339,9 +2337,7 @@ DLEXPORT PHP_FUNCTION(udm_cat_path) #else if((c=UdmCatPath(Agent,cat))){ #endif - if (array_init(return_value)==FAILURE) { - RETURN_FALSE; - } + array_init(return_value); if (!(buf=calloc(1,UDMSTRSIZ+1))) { RETURN_FALSE; |
