com php-src: Removed a surplus condition in php_register_va riable_ex(): main/php_variables.c
| From: | Nikita Popov | Date: | Tue, 05 Jul 2016 14:06:19 +0000 |
| Subject: | com php-src: Removed a surplus condition in php_register_va riable_ex(): main/php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92809@lists.php.net to get a copy of this message | ||
Commit: baa812ca95376e79fb25af30d323ef8e18248aa4
Author: Valentin V.. Bartenev <vbart@nginx.com> Wed, 29 Jun 2016 20:57:28 +0300
Committer: Nikita Popov <nikic@php.net> Tue, 5 Jul 2016 16:06:19 +0200
Parents: 4a522e3b17959792a0cb1abd155bbcfc97d5f0d5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=baa812ca95376e79fb25af30d323ef8e18248aa4
Log:
Removed a surplus condition in php_register_variable_ex()
The test for equality to " " implies that the character isn't NUL.
Changed paths:
M main/php_variables.c
Diff:
diff --git a/main/php_variables.c b/main/php_variables.c
index f55f7c8..f93b4e8 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++;
}