From: Valentin V. Bartenev Date: Wed, 29 Jun 2016 17:57:28 +0000 (+0300) Subject: Removed a surplus condition in php_register_variable_ex() X-Git-Tag: php-7.1.0alpha3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baa812ca95376e79fb25af30d323ef8e18248aa4;p=php Removed a surplus condition in php_register_variable_ex() The test for equality to " " implies that the character isn't NUL. --- diff --git a/main/php_variables.c b/main/php_variables.c index f55f7c8195..f93b4e851b 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -79,7 +79,7 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars /* ignore leading spaces in the variable name */ - while (*var_name && *var_name==' ') { + while (*var_name==' ') { var_name++; }