From: Joshua Kwan Date: Sun, 1 Feb 2004 09:25:22 +0000 (+0000) Subject: error handling for when yyerror happens and we bounce back into create_config X-Git-Tag: v1.6.1-roc-dev~493 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=474bcfb095dc7da0f690a9df72f8fc17f2955e19;p=dgamelaunch 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 --- diff --git a/dgamelaunch.c b/dgamelaunch.c index 91244de..d157340 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -163,6 +163,11 @@ create_config () return; } + if (!myconfig) /* a parse error occurred */ + { + myconfig = &defconfig; + return; + } /* Fill the rest with defaults */ if (!myconfig->shed_user && myconfig->shed_uid == -1) {