summaryrefslogtreecommitdiff
path: root/ext/mnogosearch/php_mnogo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mnogosearch/php_mnogo.c')
-rw-r--r--ext/mnogosearch/php_mnogo.c8
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;