Skip to content

Commit

Permalink
Filter out some more environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
openglfreak committed Apr 8, 2021
1 parent 351cd6e commit 989d9b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ static inline bool construct_envp(char* environ,
if (static_startswith((size_t)(p - environ), environ,
"WINELOADERNOEXEC="))
continue;
if (static_startswith((size_t)(p - environ), environ,
"WINEPRELOADRESERVE="))
continue;
if (static_startswith((size_t)(p - environ), environ,
"WINESERVERSOCKET="))
continue;

*p2++ = environ;
assert(n-- > 0);
Expand Down

0 comments on commit 989d9b6

Please sign in to comment.