From: Kern Sibbald Date: Sun, 24 Oct 2010 18:43:15 +0000 (+0200) Subject: Set daemon name and host name to zero X-Git-Tag: Release-5.2.1~971 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b80e7452e1a1d460c6d08d77561d9be0b24ca263;p=bacula%2Fbacula Set daemon name and host name to zero --- 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;