lib/repo: properly initialize boolean variable

This initializes a boolean variable that was previously left
uninitialized. It was detected by a RHT internal static analyzer.
This commit is contained in:
Luca BRUNO 2022-09-23 13:02:00 +00:00
parent 404fcc0206
commit 5412dc49ae
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
1 changed files with 1 additions and 1 deletions

View File

@ -3514,7 +3514,7 @@ reload_sysroot_config (OstreeRepo *self,
* https://github.com/ostreedev/ostree/issues/1719
* https://github.com/ostreedev/ostree/issues/1801
*/
gboolean valid_bootloader;
gboolean valid_bootloader = FALSE;
for (int i = 0; CFG_SYSROOT_BOOTLOADER_OPTS_STR[i]; i++)
{
if (g_str_equal (bootloader, CFG_SYSROOT_BOOTLOADER_OPTS_STR[i]))