aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2021-05-25 15:55:52 +0100
committerBeno�t Ganne <bganne@cisco.com>2021-05-26 08:23:09 +0000
commit457271d71c05a59c79b42334e1252f091acf3fea (patch)
tree5c8c926ce87e2941d6996d99b65c4a9c586ff656
parent2de7e96e6f1d657c124f55a75c8d63d6f05803a7 (diff)
pg: revert exec file fixes
This reverts commit fd4fd0d1853ae7384e7a64c4cad17a3469720b95. Type: fix Change-Id: I6ef84f646372270ded486eacee81817067e49106 Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
-rw-r--r--src/vlib/unix/cli.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c
index 7b9a2315910..6c98867253f 100644
--- a/src/vlib/unix/cli.c
+++ b/src/vlib/unix/cli.c
@@ -3352,7 +3352,6 @@ unix_cli_exec (vlib_main_t * vm,
char *file_name;
int fd;
unformat_input_t sub_input;
- unformat_input_t _line_input, *line_input = &_line_input;
clib_error_t *error;
unix_cli_main_t *cm = &unix_cli_main;
unix_cli_file_t *cf;
@@ -3436,11 +3435,7 @@ unix_cli_exec (vlib_main_t * vm,
vec_free (expanded);
}
- while (unformat_user (&sub_input, unformat_line_input, line_input))
- {
- vlib_cli_input (vm, line_input, 0, 0);
- unformat_free (line_input);
- }
+ vlib_cli_input (vm, &sub_input, 0, 0);
unformat_free (&sub_input);
done: