From 17e28b4cb488322b533ff79e2c1c0f32ca5b5b7b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 31 May 2018 20:27:01 -0400 Subject: [PATCH] vtysh: fp can never be NULL at this point in code The fp pointer has already been dereferenced in all paths leading to the test for non NULL. Since we never crash we know it cannot be NULL. Signed-off-by: Donald Sharp --- vtysh/vtysh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index ce796140c7..290d8f50e5 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2523,7 +2523,7 @@ DEFUN (vtysh_write_terminal, vtysh_config_dump(fp); - if (vtysh_pager_name && fp && fp != outputfile) { + if (vtysh_pager_name && fp != outputfile) { fflush(fp); if (pclose(fp) == -1) { perror("pclose"); -- 2.39.5