mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-27 23:54:25 +02:00
error handling for when yyerror happens and we bounce back into create_config
with a NULL myconfig git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@206 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
b34e8a4af3
commit
474bcfb095
@ -163,6 +163,11 @@ create_config ()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!myconfig) /* a parse error occurred */
|
||||||
|
{
|
||||||
|
myconfig = &defconfig;
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* Fill the rest with defaults */
|
/* Fill the rest with defaults */
|
||||||
if (!myconfig->shed_user && myconfig->shed_uid == -1)
|
if (!myconfig->shed_user && myconfig->shed_uid == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user