__init_env() is now called.
malloc() currently cannot be used in initialize_before() in libroot.so, and therefore a _after() call has been added for this. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11670 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
707046555e
commit
1ef5fc339b
@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
void initialize_before(image_id imageID, struct uspace_program_args const *args);
|
||||
void initialize_after(image_id imageID, struct uspace_program_args const *args);
|
||||
|
||||
char *__progname = NULL;
|
||||
int __libc_argc;
|
||||
@ -47,6 +48,14 @@ initialize_before(image_id imageID, struct uspace_program_args const *args)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
initialize_after(image_id imageID, struct uspace_program_args const *args)
|
||||
{
|
||||
// ToDo: can be moved to _before() once malloc() works before
|
||||
__init_env(args);
|
||||
}
|
||||
|
||||
|
||||
void _init_c_library_(void);
|
||||
void
|
||||
_init_c_library_(void)
|
||||
|
Loading…
Reference in New Issue
Block a user