From 65cb3b3dadb1a58819b2bf4ea7043fdb73bfc058 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Thu, 2 Mar 2017 23:32:01 +0100 Subject: [PATCH] CNeutrinoApp::loadSetup: Fix Segfault when an remote timer is defined Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9fe20399c4f8ed47f129eb20901eaf27f8ee9853 Author: Michael Liebmann Date: 2017-03-02 (Thu, 02 Mar 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index fe94460d2..0a15d9969 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -468,7 +468,8 @@ int CNeutrinoApp::loadSetup(const char * fname) if (timer_remotebox_itemcount) { for (int i = 0; i < timer_remotebox_itemcount; i++) { 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; k = "timer_remotebox_ip_" + to_string(i); timer_rb.rbaddress = configfile.getString(k, "");