fix case where argv[1] == ENOENT

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@102 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-06 05:03:30 +00:00
parent d80b867622
commit c8739c386b
1 changed files with 8 additions and 3 deletions

View File

@ -137,6 +137,11 @@ create_config ()
fclose(config_file);
free (config);
}
else
{
myconfig = &defconfig;
return;
}
/* Fill the rest with defaults */
if (!myconfig->shed_user && myconfig->shed_uid == 0)
@ -314,9 +319,9 @@ loadbanner (struct dg_banner *ban)
memset (buf, 0, 80);
if (ban->len == 14) /* menu itself needs 10 lines, 24 - 10 */
break;
}
if (ban->len == 12) /* menu itself needs 12 lines, 24 - 12 */
break;
}
fclose (bannerfile);
}