update_settings.cpp: avoid possible segfault

fw_url is not initialized without defined update.url
This commit is contained in:
2021-04-11 17:17:26 +02:00
parent 03bc0b96a0
commit f299b72b08

View File

@@ -174,7 +174,8 @@ int CUpdateSettings::initMenu()
}
#endif
w_upsettings.addItem(fw_update_dir);
w_upsettings.addItem(fw_url);
if (fw_url)
w_upsettings.addItem(fw_url);
#if ENABLE_EXTUPDATE
w_upsettings.addItem(name_backup);
#ifndef BOXMODEL_CST_HD2