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-7.0.0~1436 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e999cc43d50e4f81890d7a5abd8af1ebff46ee8;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;