mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Simplify declaration
This commit is contained in:
parent
325934c057
commit
7761c819bf
@ -1363,9 +1363,8 @@ static void init_request_info(fcgi_request *request)
|
||||
/* PATH_TRANSLATED = PATH_TRANSLATED - SCRIPT_NAME + PATH_INFO */
|
||||
size_t ptlen = strlen(pt) - strlen(env_script_name);
|
||||
size_t path_translated_len = ptlen + (env_path_info ? strlen(env_path_info) : 0);
|
||||
char *path_translated = NULL;
|
||||
|
||||
path_translated = (char *) emalloc(path_translated_len + 1);
|
||||
char *path_translated = (char *) emalloc(path_translated_len + 1);
|
||||
memcpy(path_translated, pt, ptlen);
|
||||
if (env_path_info) {
|
||||
memcpy(path_translated + ptlen, env_path_info, path_translated_len - ptlen);
|
||||
|
Loading…
Reference in New Issue
Block a user