]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
* src/scan-gram.l: Be robust to BRACED_CODE appearing before any
[bison.git] / src / scan-gram.l
index 1aa5e077e22290d89016d9922db4f1911fd907c8..cf704c7724e65c624392025547c9550116d7b805 100644 (file)
@@ -292,7 +292,7 @@ splice       (\\[ \f\t\v]*\n)*
 
   /* Code in between braces.  */
   "{" {
-    if (current_rule->action)
+    if (current_rule && current_rule->action)
       grammar_midrule_action ();
     STRING_GROW;
     token_type = BRACED_CODE;