mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
update_settings.cpp: avoid possible segfault
fw_url is not initialized without defined update.url
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user