CNeutrinoApp::loadSetup: Fix Segfault when an remote timer is defined

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9fe20399c4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-02 (Thu, 02 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-03-02 23:32:01 +01:00
parent 7767cfe619
commit 65cb3b3dad

View File

@@ -468,7 +468,8 @@ int CNeutrinoApp::loadSetup(const char * fname)
if (timer_remotebox_itemcount) { if (timer_remotebox_itemcount) {
for (int i = 0; i < timer_remotebox_itemcount; i++) { for (int i = 0; i < timer_remotebox_itemcount; i++) {
timer_remotebox_item timer_rb; timer_remotebox_item timer_rb;
memset(&timer_rb, 0, sizeof(struct timer_remotebox_item)); timer_rb.online = false;
timer_rb.port = 0;
std::string k; std::string k;
k = "timer_remotebox_ip_" + to_string(i); k = "timer_remotebox_ip_" + to_string(i);
timer_rb.rbaddress = configfile.getString(k, ""); timer_rb.rbaddress = configfile.getString(k, "");