In cfg.rl, when performing clear action, don't clear the cs member in ccfg.
This commit is contained in:
parent
a777766cc6
commit
b5f0ccd88d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user