Merge pull request #2718 from lucab/ups/repo-initialize-valid-bootloader

lib/repo: properly initialize boolean variable
This commit is contained in:
Colin Walters 2022-09-23 11:09:13 -04:00 committed by GitHub
commit f442f02c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]))