diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-01 15:07:56 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-01 15:07:56 +0000 |
commit | f611f0ee824a6b363dc675e8f6ac963f20e7d007 (patch) | |
tree | 467918690dac758df7627d82e9141e291736f285 /nest | |
parent | 2ad6dcdb2c949904643eabbbf6d0029045e8ea45 (diff) |
Reset temporary parser data before parsing, not afterwards. This enables
deferred CLI command handlers to store their temporary data in the CLI
parsing pool.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,8 +128,8 @@ cli_command(struct cli *c) cli_rh_len = strlen(c->rx_buf); cli_rh_trick_flag = 0; this_cli = c; - res = cli_parse(&f); lp_flush(c->parser_pool); + res = cli_parse(&f); if (!res) cli_printf(c, 9001, f.err_msg); } |