File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1353,9 +1353,11 @@ static wchar_t *make_environment_block(char **deltaenv)
13531353 for (j = 0 ; j < nr_wenv ; j ++ ) {
13541354 const wchar_t * v_j = my_wenviron [j ];
13551355 wchar_t * v_j_eq = wcschr (v_j , L'=' );
1356+ int len_j_eq , len_j ;
1357+
13561358 if (!v_j_eq )
13571359 continue ; /* should not happen */
1358- int len_j_eq = v_j_eq + 1 - v_j ; /* length(v_j) including '=' */
1360+ len_j_eq = v_j_eq + 1 - v_j ; /* length(v_j) including '=' */
13591361
13601362 /* lookup v_j in list of to-delete vars */
13611363 for (k_del = 0 ; k_del < nr_delta_del ; k_del ++ ) {
@@ -1370,7 +1372,7 @@ static wchar_t *make_environment_block(char **deltaenv)
13701372 }
13711373
13721374 /* item is unique, add it to results. */
1373- int len_j = wcslen (v_j );
1375+ len_j = wcslen (v_j );
13741376 memcpy (w_ins , v_j , len_j * sizeof (wchar_t ));
13751377 w_ins += len_j + 1 ;
13761378
You can’t perform that action at this time.
0 commit comments