]> granicus.if.org Git - php/commitdiff
it is good idea to return something always
authorfoobar <sniper@php.net>
Fri, 2 Sep 2005 08:24:14 +0000 (08:24 +0000)
committerfoobar <sniper@php.net>
Fri, 2 Sep 2005 08:24:14 +0000 (08:24 +0000)
main/php_ini.c

index a86dd8ac528f49911b6507de6e1ece7fdff34ebc..82db68c6adb2546ff09a8380ff36bd025e9c0f3b 100644 (file)
@@ -258,9 +258,7 @@ static void pvalue_config_destructor(zval *pvalue)
  */
 int php_init_config_hash(void)
 {
-       if (zend_hash_init(&configuration_hash, 0, NULL, (dtor_func_t) pvalue_config_destructor, 1) == FAILURE) {
-               return FAILURE;
-       }
+       return zend_hash_init(&configuration_hash, 0, NULL, (dtor_func_t) pvalue_config_destructor, 1);
 }
 /* }}} */