Quick fix

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@84 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-05 01:57:25 +00:00
parent 4f6bec9c0a
commit 8da9e3acdc
1 changed files with 5 additions and 1 deletions

View File

@ -158,6 +158,7 @@ create_config ()
}
if (myconfig->max == 0) myconfig->max = defconfig.max;
if (!myconfig->banner) myconfig->banner = strdup(defconfig.banner);
if (!myconfig->chroot) myconfig->chroot = strdup(defconfig.chroot);
if (!myconfig->nethack) myconfig->nethack = strdup(defconfig.nethack);
if (!myconfig->dglroot) myconfig->dglroot = strdup(defconfig.dglroot);
@ -1318,7 +1319,7 @@ purge_stale_locks (void)
}
int
main (void)
main (int argc, char** argv)
{
/* for chroot and program execution */
char atrcfilename[81], *spool;
@ -1327,6 +1328,9 @@ main (void)
int userchoice = 0;
if (argc == 2)
config = strdup(argv[1]);
create_config();
/* coredumper */