diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-31 00:37:47 +0100 |
commit | 9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 (patch) | |
tree | c4ae426872560a5e070f2054072607f2578e1f7d /lib/command.c | |
parent | f3255d1e9f062e7783b05ab5b32ca70085170d79 (diff) | |
download | quagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.bz2 quagga-9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874.tar.xz |
Small improvements to speed of reading of configuration file.
Tidy up signalling of "ready" to command loop, and checking of
appropriate state to close written configuration file.
Diffstat (limited to 'lib/command.c')
-rw-r--r-- | lib/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 4057bcfc..f9747a33 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2159,6 +2159,8 @@ cmd_init (bool terminal) { srand(time(NULL)) ; + cmd_parser_init() ; + if (host.cwd == NULL) /* in case cmd_cwd() not called, yet */ cmd_getcwd() ; @@ -2333,7 +2335,6 @@ cmd_terminate () cmd->items = NULL ; /* gone */ - XFREE (MTYPE_CMD_STRING, cmd->r_string) ; /* sets NULL */ XFREE (MTYPE_CMD_STRING, cmd->r_doc) ; } ; } |