Squash the uninitialized pointer read warning, CID 1519385, 1519387

This commit is contained in:
olszomal 2023-01-16 14:49:21 +01:00 committed by Michał Trojnara
parent fade782e58
commit b0eaa96d45

View File

@ -6222,8 +6222,6 @@ int main(int argc, char **argv)
/* reset MSI parameters */
memset(&msiparams, 0, sizeof(MSI_PARAMS));
msiparams.msi = NULL;
msiparams.dirent = NULL;
/* commands and options initialization */
if (!main_configure(argc, argv, &cmd, &options))
@ -6432,7 +6430,9 @@ err_cleanup:
}
}
unmap_file(indata, filesize);
/* coverity[uninit_use_in_call] False-positive: msiparams initialized by memset */
free_msi_params(&msiparams);
/* coverity[uninit_use_in_call] False-positive: cparams initialized by memset */
free_crypto_params(&cparams);
free_options(&options);
#if OPENSSL_VERSION_NUMBER>=0x30000000L