]> granicus.if.org Git - php/commitdiff
Removed unneeded if().
authorIlia Alshanetsky <iliaa@php.net>
Sun, 27 Jun 2004 21:49:47 +0000 (21:49 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 27 Jun 2004 21:49:47 +0000 (21:49 +0000)
ext/standard/basic_functions.c

index 3f1726c26d043e98fd56ab2651b590d4cd4d3022..2a8239795e0c2c1bf9fb150695bfdcf59846fa58 100644 (file)
@@ -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));