From: Ilia Alshanetsky Date: Sun, 27 Jun 2004 21:49:47 +0000 (+0000) Subject: Removed unneeded if(). X-Git-Tag: php-5.0.0~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53bf5ccbeab21009beb4da07d4a033c14d962264;p=php Removed unneeded if(). --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 3f1726c26d..2a8239795e 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1484,9 +1484,7 @@ PHP_FUNCTION(getopt) * Attempt to allocate enough memory to hold all of the arguments * and a trailing NULL */ - if ((argv = (char **) safe_emalloc(sizeof(char *), (argc + 1), 0)) == NULL) { - RETURN_FALSE; - } + argv = (char **) safe_emalloc(sizeof(char *), (argc + 1), 0); /* Reset the array indexes. */ zend_hash_internal_pointer_reset(Z_ARRVAL_PP(args));