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:
parent
404fcc0206
commit
5412dc49ae
|
|
@ -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]))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue