mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Reduce var scope
This commit is contained in:
parent
050d62484b
commit
668a6d329c
3 changed files with 8 additions and 13 deletions
|
@ -407,11 +407,10 @@ PW32CP wchar_t *php_win32_cp_env_any_to_w(const char* env)
|
|||
|
||||
do {
|
||||
wchar_t *tmp;
|
||||
size_t tmp_len;
|
||||
|
||||
tmp = php_win32_cp_any_to_w(cur);
|
||||
if (tmp) {
|
||||
tmp_len = wcslen(tmp) + 1;
|
||||
size_t tmp_len = wcslen(tmp) + 1;
|
||||
memmove(ew + bin_len, tmp, tmp_len * sizeof(wchar_t));
|
||||
free(tmp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue