summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-19 10:40:56 +0200
committerpaco <paco@voltanet.io>2018-06-19 10:40:56 +0200
commit6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a (patch)
treed6cbf6a8295df6c4e414331c69df515666e8d5a8 /vtysh/vtysh.c
parentMerge pull request #2476 from pacovn/Coverity_1433544_Explicit_null_dereferenced (diff)
downloadfrr-6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a.tar.xz
frr-6d10727ac13e5b80c3d5f8b42acf17cebb3f9d5a.zip
eigrpd, lib, tests, vtysh: security (cppcheck)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'vtysh/vtysh.c')
-rw-r--r--vtysh/vtysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 859d126e7..328c68d82 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -816,7 +816,7 @@ int vtysh_mark_file(const char *filename)
vty_out(vty, "%s", vty->buf);
break;
case CMD_SUCCESS_DAEMON: {
- int cmd_stat = CMD_SUCCESS;
+ int cmd_stat;
vty_out(vty, "%s", vty->buf);
cmd_stat = vtysh_client_execute(&vtysh_client[0],