mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed segfault in Environment.GetEnvironmentVariables on POSIX
This commit is contained in:
parent
94c63d233e
commit
691f81f5c1
1 changed files with 3 additions and 0 deletions
|
@ -658,6 +658,9 @@ BFP_EXPORT void BFP_CALLTYPE BfpSystem_GetEnvironmentStrings(char* outStr, int*
|
|||
while (true)
|
||||
{
|
||||
char* envStr = *envPtr;
|
||||
if (envStr == NULL)
|
||||
break;
|
||||
|
||||
env.Append(envStr, strlen(envStr) + 1);
|
||||
++envPtr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue