diff options
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/command.c b/lib/command.c index d2145d9f5a..8811b3a791 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2503,8 +2503,6 @@ static void disable_log_file(void) zlog_reset_file(); XFREE(MTYPE_HOST, host.logfile); - - host.logfile = NULL; } DEFUN (no_config_log_file, @@ -2661,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); } |
