summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 1 insertions, 2 deletions
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);
}