Merge pull request #2718 from lucab/ups/repo-initialize-valid-bootloader
lib/repo: properly initialize boolean variable
This commit is contained in:
1 file changed
+1
-1
@@ -3514,7 +3514,7 @@ reload_sysroot_config (OstreeRepo *self,
|
|||||||
* https://github.com/ostreedev/ostree/issues/1719
|
* https://github.com/ostreedev/ostree/issues/1719
|
||||||
* https://github.com/ostreedev/ostree/issues/1801
|
* 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++)
|
for (int i = 0; CFG_SYSROOT_BOOTLOADER_OPTS_STR[i]; i++)
|
||||||
{
|
{
|
||||||
if (g_str_equal (bootloader, CFG_SYSROOT_BOOTLOADER_OPTS_STR[i]))
|
if (g_str_equal (bootloader, CFG_SYSROOT_BOOTLOADER_OPTS_STR[i]))
|
||||||
|
|||||||
Reference in new issue
Block a user