summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-03 09:06:51 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:19:01 +0200
commita91a3bac14976c04bf22b20c7e4bada787ec79b1 (patch)
tree1c16b21c785b22c4f7c093e80dcf2c2af20243d1 /lib
parent3cf4053a9e832408fad33a8246ecbd189f23a956 (diff)
downloadquagga-a91a3bac14976c04bf22b20c7e4bada787ec79b1.tar.bz2
quagga-a91a3bac14976c04bf22b20c7e4bada787ec79b1.tar.xz
vtysh: don't use '\0' as NULL
for some reason, the vty code was using '\0' in place of NULL. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 750f8856..d623b853 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -870,7 +870,7 @@ 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);
@@ -985,11 +985,11 @@ vty_describe_command (struct vty *vty)
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);