mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 10:25:41 +00:00
Fixed NULL pointer def
This commit is contained in:
1 parent
1aecda4c43
commit
ebfa9e0415
1 file changed
+2
-1
+2
-1
@@ -95,11 +95,12 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
|
||||
len += name_len;
|
||||
if (value && url_encode) {
|
||||
encoded_value = php_url_encode(value, value_len);
|
||||
len += encoded_value->len;
|
||||
} else if (value) {
|
||||
encoded_value = STR_INIT(value, value_len, 0);
|
||||
len += encoded_value->len;
|
||||
}
|
||||
|
||||
len += encoded_value->len;
|
||||
if (path) {
|
||||
len += path_len;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user