]> granicus.if.org Git - flex/commitdiff
Fixed seg fault bug in ecs.
authorJohn Millaway <john43@users.sourceforge.net>
Thu, 15 Aug 2002 21:23:18 +0000 (21:23 +0000)
committerJohn Millaway <john43@users.sourceforge.net>
Thu, 15 Aug 2002 21:23:18 +0000 (21:23 +0000)
main.c

diff --git a/main.c b/main.c
index b415957a6c5744900830fe39e45c3c04dac6a17a..762d328286f4527aaa0cacb6a41ffbf60f5164fe 100644 (file)
--- a/main.c
+++ b/main.c
@@ -410,10 +410,6 @@ void check_options()
        /* Create the alignment type. */
        buf_strdefine(&userdef_buf,"YY_INT_ALIGNED",
                        long_align ? "long int" : "short int");
-       
-       /* Now map the equivalence class for NUL to its expected place. */
-       ecgroup[0] = ecgroup[csize];
-       NUL_ec = ABS( ecgroup[0] );
 
        /* Dump the user defined preproc directives. */
        if (userdef_buf.elts)
@@ -1667,6 +1663,10 @@ _( "Variable trailing context rules entail a large performance penalty\n" ) );
        else
                numecs = csize;
 
+       /* Now map the equivalence class for NUL to its expected place. */
+       ecgroup[0] = ecgroup[csize];
+       NUL_ec = ABS( ecgroup[0] );
+
        if ( useecs )
                ccl2ecl();
        }