mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Avoid useless duplication
This commit is contained in:
parent
c61cea7135
commit
7af5741333
1 changed files with 1 additions and 5 deletions
|
@ -458,7 +458,7 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
|
|||
switch (arg) {
|
||||
case PARSE_GET:
|
||||
case PARSE_STRING:
|
||||
separator = (char *) estrdup(PG(arg_separator).input);
|
||||
separator = PG(arg_separator).input;
|
||||
break;
|
||||
case PARSE_COOKIE:
|
||||
separator = ";\0";
|
||||
|
@ -513,10 +513,6 @@ next_cookie:
|
|||
var = php_strtok_r(NULL, separator, &strtok_buf);
|
||||
}
|
||||
|
||||
if (arg != PARSE_COOKIE) {
|
||||
efree(separator);
|
||||
}
|
||||
|
||||
if (free_buffer) {
|
||||
efree(res);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue