In cfg.rl, when performing clear action, don't clear the cs member in ccfg.

This commit is contained in:
Nicholas J. Kain 2014-04-15 14:56:35 -04:00
parent a777766cc6
commit b5f0ccd88d

View File

@ -24,7 +24,11 @@ struct cfgparse {
machine cfg_actions; machine cfg_actions;
access ccfg.; access ccfg.;
action clear { memset(&ccfg, 0, sizeof ccfg); } action clear {
memset(&ccfg.buf, 0, sizeof ccfg.buf);
ccfg.buflen = 0;
ccfg.ternary = 0;
}
action append { action append {
if (ccfg.buflen < sizeof ccfg.buf - 1) if (ccfg.buflen < sizeof ccfg.buf - 1)
ccfg.buf[ccfg.buflen++] = *p; ccfg.buf[ccfg.buflen++] = *p;