From e2868b57885dac8a36593e2154c808038adc4cef Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 18 Jan 2003 19:41:56 +0000 Subject: Removed pointless memory allocation checks. --- ext/mnogosearch/php_mnogo.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/mnogosearch/php_mnogo.c') 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; -- cgit v1.2.1