From 00f86a36e076130c2c34a49b8dc820f34bf65d85 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 15 Feb 2012 09:56:43 +1100 Subject: s3-nmbd: Initialise newly non-static variables Found by testing with wintest. When the variables were made non-static in c21f6a1c6869a5086634bb830d6c3689dea539a3 the implicit initialisation to 0 was lost. Andrew Bartlett --- source3/nmbd/nmbd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 5392eb1d65..35a9a31f8a 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -725,11 +725,11 @@ static bool open_sockets(bool isdaemon, int port) int main(int argc, const char *argv[]) { - bool is_daemon; - bool opt_interactive; + bool is_daemon = false; + bool opt_interactive = false; bool Fork = true; - bool no_process_group; - bool log_stdout; + bool no_process_group = false; + bool log_stdout = false; poptContext pc; char *p_lmhosts = NULL; int opt; -- cgit