X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsStartup.c;h=0c5c2a36cb989815fc0ef2a26769d5eec9a0a1fb;hb=cffcb52b7b7518db39d64394270392d06215cf90;hp=099f891f50a9d63242c9810d20191604d5ee6cbf;hpb=3c6b9911369deda84fcc74a31372e6f51e0cb054;p=ghc-hetmet.git diff --git a/ghc/rts/RtsStartup.c b/ghc/rts/RtsStartup.c index 099f891..0c5c2a3 100644 --- a/ghc/rts/RtsStartup.c +++ b/ghc/rts/RtsStartup.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsStartup.c,v 1.74 2003/08/19 16:32:23 simonmar Exp $ + * $Id: RtsStartup.c,v 1.75 2003/08/22 22:24:15 sof Exp $ * * (c) The GHC Team, 1998-2002 * @@ -197,8 +197,8 @@ startupHaskell(int argc, char *argv[], void (*init_root)(void)) void getProgArgv(int *argc, char **argv[]) { - *argc = prog_argc; - *argv = prog_argv; + if (argc) { *argc = prog_argc; } + if (argv) { *argv = prog_argv; } } void