fix segfault at startup

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0e2a405fa5
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-02 (Thu, 02 Mar 2017)

Origin message was:
------------------
- fix segfault at startup

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-03-02 22:23:32 +01:00
parent 6fb38c77a5
commit b7db53e3c1

View File

@@ -511,7 +511,7 @@ 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)); //NI memset(&timer_rb, 0, sizeof(struct timer_remotebox_item));
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, "");