Fixed stupid bug in copy_environ_to_heap_if_needed(): it copied the

environment, but it didn't set the "environ" to the new array, and
thus throwing away the copy again.
GCC no longer crashes because of this, and runs through without help :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12914 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-05-31 01:59:01 +00:00
parent 2dbdc141cf
commit 12e1714d54

View File

@ -93,6 +93,7 @@ copy_environ_to_heap_if_needed(void)
newEnv[i] = NULL;
// null terminate the array
environ = newEnv;
sCopied = true;
return B_OK;
}