aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vty/vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index 230d74c0..5bcbe4a9 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -982,7 +982,7 @@ static void vty_complete_command(struct vty *vty)
/* In case of 'help \t'. */
if (isspace((int)vty->buf[vty->length - 1]))
- vector_set(vline, '\0');
+ vector_set(vline, NULL);
matched = cmd_complete_command(vline, vty, &ret);
@@ -1092,9 +1092,9 @@ static void vty_describe_command(struct vty *vty)
/* In case of '> ?'. */
if (vline == NULL) {
vline = vector_init(1);
- vector_set(vline, '\0');
+ vector_set(vline, NULL);
} else if (isspace((int)vty->buf[vty->length - 1]))
- vector_set(vline, '\0');
+ vector_set(vline, NULL);
describe = cmd_describe_command(vline, vty, &ret);