Skip to content

Commit 805b7b1

Browse files
committed
fixup! msvc: convert environment from/to UTF-16 on the fly
1 parent 30673f5 commit 805b7b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/mingw.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,8 @@ int mingw_kill(pid_t pid, int sig)
16731673
char *msc_getenv(const char *name)
16741674
{
16751675
int len_key, len_value;
1676-
wchar_t *w_key, *value;
1676+
wchar_t *w_key;
1677+
char *value;
16771678
const wchar_t *w_value;
16781679

16791680
if (!name || !*name)

0 commit comments

Comments
 (0)