From e1b36e132b7eda2d230f2f95945e231df37a42f5 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 4 Feb 2020 13:19:37 -0500 Subject: *: remove null check before XFREE Signed-off-by: Quentin Young --- lib/command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 05bb665657..8811b3a791 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2659,8 +2659,7 @@ int cmd_banner_motd_file(const char *file) void cmd_banner_motd_line(const char *line) { - if (host.motd) - XFREE(MTYPE_HOST, host.motd); + XFREE(MTYPE_HOST, host.motd); host.motd = XSTRDUP(MTYPE_HOST, line); } -- cgit v1.2.3