Coverity : 72737, 72751, 72754
Fixed uses of uninitialized values.
This commit is contained in:
@ -360,8 +360,10 @@ static bool logmanager_init_nomutex(
|
|||||||
fw->fwr_state = UNINIT;
|
fw->fwr_state = UNINIT;
|
||||||
|
|
||||||
/** Initialize configuration including log file naming info */
|
/** Initialize configuration including log file naming info */
|
||||||
if (!fnames_conf_init(fn, argc, argv)) {
|
if (!fnames_conf_init(fn, argc, argv))
|
||||||
goto return_succp;
|
{
|
||||||
|
err = 1;
|
||||||
|
goto return_succp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Initialize logfiles */
|
/** Initialize logfiles */
|
||||||
@ -2076,8 +2078,8 @@ static bool logfile_init(
|
|||||||
fnames_conf_t* fn = &logmanager->lm_fnames_conf;
|
fnames_conf_t* fn = &logmanager->lm_fnames_conf;
|
||||||
/** string parts of which the file is composed of */
|
/** string parts of which the file is composed of */
|
||||||
strpart_t strparts[3];
|
strpart_t strparts[3];
|
||||||
bool namecreatefail;
|
bool namecreatefail = false;
|
||||||
bool nameconflicts;
|
bool nameconflicts = false;
|
||||||
bool writable;
|
bool writable;
|
||||||
|
|
||||||
logfile->lf_state = INIT;
|
logfile->lf_state = INIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user