The cs variable is now always initialized, unless the "nocs" option is given to
[external/ragel.git] / rlgen-ruby / rubycodegen.cpp
index 5e8a81c..e8e5733 100644 (file)
@@ -384,7 +384,7 @@ void RubyCodeGen::writeInit()
 {
        out << INDENT_U() << "begin";
 
-       if ( redFsm->startState != 0 )
+       if ( writeCS )
                out << INDENT_S() <<   CS() << " = " << START();
 
        /* If there are any calls, then the stack top needs initialization. */