Commit 5d0ccfe9 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-01-28 16:23:53 by simonmar]

Initialise prog_argc, prog_argv and rts_argc to sensible zero values
just in case hs_init() is called without passing any arguments in.
parent f59af62c
/* -----------------------------------------------------------------------------
* $Id: RtsFlags.c,v 1.64 2003/01/23 12:13:12 simonmar Exp $
* $Id: RtsFlags.c,v 1.65 2003/01/28 16:23:53 simonmar Exp $
*
* (c) The AQUA Project, Glasgow University, 1994-1997
* (c) The GHC Team, 1998-1999
......@@ -45,9 +45,9 @@ extern struct RTS_FLAGS RtsFlags;
/*
* Split argument lists
*/
int prog_argc; /* an "int" so as to match normal "argc" */
int prog_argc = 0; /* an "int" so as to match normal "argc" */
char **prog_argv = NULL;
int rts_argc; /* ditto */
int rts_argc = 0; /* ditto */
char *rts_argv[MAX_RTS_ARGS];
//@node Constants, Static function decls, Includes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment