From baa812ca95376e79fb25af30d323ef8e18248aa4 Mon Sep 17 00:00:00 2001 From: "Valentin V. Bartenev" Date: Wed, 29 Jun 2016 20:57:28 +0300 Subject: [PATCH] Removed a surplus condition in php_register_variable_ex() The test for equality to " " implies that the character isn't NUL. --- main/php_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.50.1