File tree 1 file changed +4
-2
lines changed 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)
1353
1353
for (j = 0 ; j < nr_wenv ; j ++ ) {
1354
1354
const wchar_t * v_j = my_wenviron [j ];
1355
1355
wchar_t * v_j_eq = wcschr (v_j , L'=' );
1356
+ int len_j_eq , len_j ;
1357
+
1356
1358
if (!v_j_eq )
1357
1359
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 '=' */
1359
1361
1360
1362
/* lookup v_j in list of to-delete vars */
1361
1363
for (k_del = 0 ; k_del < nr_delta_del ; k_del ++ ) {
@@ -1370,7 +1372,7 @@ static wchar_t *make_environment_block(char **deltaenv)
1370
1372
}
1371
1373
1372
1374
/* item is unique, add it to results. */
1373
- int len_j = wcslen (v_j );
1375
+ len_j = wcslen (v_j );
1374
1376
memcpy (w_ins , v_j , len_j * sizeof (wchar_t ));
1375
1377
w_ins += len_j + 1 ;
1376
1378
You can’t perform that action at this time.
0 commit comments