From b80e7452e1a1d460c6d08d77561d9be0b24ca263 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 24 Oct 2010 20:43:15 +0200 Subject: [PATCH] Set daemon name and host name to zero --- bacula/src/lib/message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index d13a079ca1..e1d1dceccb 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -58,8 +58,8 @@ utime_t daemon_start_time = 0; /* Daemon start time */ const char *version = VERSION " (" BDATE ")"; const char *dist_name = DISTNAME " " DISTVER; const int beef = BEEF; -char my_name[30]; /* daemon name is stored here */ -char host_name[50]; /* host machine name */ +char my_name[30] = {0}; /* daemon name is stored here */ +char host_name[50] = {0}; /* host machine name */ char *exepath = (char *)NULL; char *exename = (char *)NULL; int console_msg_pending = false; -- 2.39.5