From: Stefan Huber Date: Thu, 15 May 2008 11:17:08 +0000 (+0200) Subject: add setting environment variables -> fix GL bug X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=8ec778745d7432e558839c811bab5ff2a188fbed;p=runfinite.git add setting environment variables -> fix GL bug --- diff --git a/src/main.cpp b/src/main.cpp index c464880..3e147b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,7 +40,7 @@ void printUsage(FILE* out, int argc, char** argv) } -int main(int argc, char** argv) +int main(int argc, char* argv[], char* envp[]) { bool argHelp=false; bool argTime=false; @@ -151,7 +151,6 @@ int main(int argc, char** argv) if( pid == 0) { char** newargv = (char**) malloc( sizeof(char*)*(argc-fiarg+1) ); - char* newenv[] = {NULL}; //Copy arguments for( int i=fiarg; i