From 9d466b5770be89c88bf8b3d025fcf9e6debbb158 Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Thu, 30 Oct 2014 17:51:29 +0200 Subject: [PATCH] Coverity : 72737, 72751, 72754 Fixed uses of uninitialized values. --- log_manager/log_manager.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/log_manager/log_manager.cc b/log_manager/log_manager.cc index 0d32b0354..d85cff979 100644 --- a/log_manager/log_manager.cc +++ b/log_manager/log_manager.cc @@ -360,8 +360,10 @@ static bool logmanager_init_nomutex( fw->fwr_state = UNINIT; /** Initialize configuration including log file naming info */ - if (!fnames_conf_init(fn, argc, argv)) { - goto return_succp; + if (!fnames_conf_init(fn, argc, argv)) + { + err = 1; + goto return_succp; } /** Initialize logfiles */ @@ -2076,8 +2078,8 @@ static bool logfile_init( fnames_conf_t* fn = &logmanager->lm_fnames_conf; /** string parts of which the file is composed of */ strpart_t strparts[3]; - bool namecreatefail; - bool nameconflicts; + bool namecreatefail = false; + bool nameconflicts = false; bool writable; logfile->lf_state = INIT;