mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
better way to check for an empty string
This commit is contained in:
parent
f357628fc9
commit
e00d48490b
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ finish:
|
|||
/* Remove newlines and spaces from start and end php_trim will estrndup() */
|
||||
tmp = php_trim(Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval), NULL, 0, NULL, 3 TSRMLS_CC);
|
||||
}
|
||||
if (tmp && strlen(tmp) > 0) {
|
||||
if (tmp && tmp[0] != '\0') {
|
||||
char *s;
|
||||
|
||||
user_headers = estrdup(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue