]> skyeroc.xyz Git - dgamelaunch/commitdiff
error handling for when yyerror happens and we bounce back into create_config
authorJoshua Kwan <joshk@triplehelix.org>
Sun, 1 Feb 2004 09:25:22 +0000 (09:25 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Sun, 1 Feb 2004 09:25:22 +0000 (09:25 +0000)
with a NULL myconfig

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@206 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 91244def7850f43a995c17a6f753615170adb1aa..d157340b21d8b62192bbe1ca12ed860d856c1f5e 100644 (file)
@@ -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)
     {