address segfault for M2-Planet build
This commit is contained in:
parent
5644a0c456
commit
781fdeee18
4
cc.c
4
cc.c
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
/* The core functions */
|
/* The core functions */
|
||||||
void populate_env(char** envp);
|
void populate_env(char** envp);
|
||||||
void setup_env(char** envp);
|
void setup_env();
|
||||||
char* env_lookup(char* variable);
|
char* env_lookup(char* variable);
|
||||||
void initialize_types();
|
void initialize_types();
|
||||||
struct token_list* read_all_tokens(FILE* a, struct token_list* current, char* filename);
|
struct token_list* read_all_tokens(FILE* a, struct token_list* current, char* filename);
|
||||||
|
@ -188,7 +188,7 @@ int main(int argc, char** argv, char** envp)
|
||||||
/* Get the environmental bits */
|
/* Get the environmental bits */
|
||||||
if(1 <= DEBUG_LEVEL) fputs("Starting to setup Environment\n", stderr);
|
if(1 <= DEBUG_LEVEL) fputs("Starting to setup Environment\n", stderr);
|
||||||
populate_env(envp);
|
populate_env(envp);
|
||||||
setup_env(envp);
|
setup_env();
|
||||||
M2LIBC_PATH = env_lookup("M2LIBC_PATH");
|
M2LIBC_PATH = env_lookup("M2LIBC_PATH");
|
||||||
if(NULL == M2LIBC_PATH) M2LIBC_PATH = "./M2libc";
|
if(NULL == M2LIBC_PATH) M2LIBC_PATH = "./M2libc";
|
||||||
if(1 <= DEBUG_LEVEL) fputs("Environment setup\n", stderr);
|
if(1 <= DEBUG_LEVEL) fputs("Environment setup\n", stderr);
|
||||||
|
|
Loading…
Reference in New Issue