Browse Source

Removed unneeded if().

PHP-5.0
Ilia Alshanetsky 22 years ago
parent
commit
53bf5ccbea
  1. 4
      ext/standard/basic_functions.c

4
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));

Loading…
Cancel
Save