From 53bf5ccbeab21009beb4da07d4a033c14d962264 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 27 Jun 2004 21:49:47 +0000 Subject: [PATCH] Removed unneeded if(). --- ext/standard/basic_functions.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 3f1726c26d0..2a8239795e0 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));