mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
update_settings.cpp: avoid possible segfault
fw_url is not initialized without defined update.url
Origin commit data
------------------
Commit: f48d4588ca
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-12 (Mon, 12 Apr 2021)
This commit is contained in:
@@ -171,7 +171,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