diff options
author | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-12 08:56:47 +0100 |
---|---|---|
committer | Holger Steinhaus <hsteinhaus@gmx.de> | 2015-11-12 09:22:23 +0100 |
commit | c6f1ec91cbf6f608493bd61f1f508d9e045f9339 (patch) | |
tree | e7fade50de3da5082d5da8ff96da6be35efc6237 | |
parent | a40106d5c33463fb2071881db564a39f302f5163 (diff) | |
download | vdr-plugin-mcli-c6f1ec91cbf6f608493bd61f1f508d9e045f9339.tar.gz vdr-plugin-mcli-c6f1ec91cbf6f608493bd61f1f508d9e045f9339.tar.bz2 |
fixed more "uninitialized use" warnings
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | device.c | 2 | ||||
-rw-r--r-- | mcast/common/recv_ccpp.c | 5 |
3 files changed, 6 insertions, 5 deletions
@@ -23,8 +23,8 @@ TMPDIR ?= /tmp ### The compiler options: -export CFLAGS = $(call PKGCFG,cflags) -fPIC -export CXXFLAGS = $(call PKGCFG,cxxflags) -fPIC +export CFLAGS = $(call PKGCFG,cflags) -fPIC -Wall +export CXXFLAGS = $(call PKGCFG,cxxflags) -fPIC -Wall ### The version number of VDR's plugin API: @@ -198,7 +198,7 @@ bool cMcliDevice::SetTempDisable (bool now) } //#endif // printf("Device %d Receiving %d Priority %d\n",CardIndex () + 1, Receiving (true), Priority()); - if(!Receiving (true) && (((time(NULL)-m_last) >= m_disabletimeout)) || now) { + if((!Receiving (true) && (((time(NULL)-m_last) >= m_disabletimeout)) ) || now) { recv_stop (m_r); m_tuned = false; if(GetCaEnable()) { diff --git a/mcast/common/recv_ccpp.c b/mcast/common/recv_ccpp.c index ce15e4c..bc02917 100644 --- a/mcast/common/recv_ccpp.c +++ b/mcast/common/recv_ccpp.c @@ -469,8 +469,8 @@ void *recv_ten (void *arg) clock_t lastrecv=0; int donetimeout=0; - pthread_cleanup_push (clean_ccpp_thread, &c); memset (&c, 0, sizeof (ccpp_thread_context_t)); + pthread_cleanup_push (clean_ccpp_thread, &c); c.buf=(xmlChar *)malloc(XML_BUFLEN); if (!c.buf) { @@ -599,8 +599,8 @@ void *recv_tra (void *arg) unsigned int dstlen; struct in6_addr tra; - pthread_cleanup_push (clean_ccpp_thread, &c); memset (&c, 0, sizeof (ccpp_thread_context_t)); + pthread_cleanup_push (clean_ccpp_thread, &c); c.buf=(xmlChar *)malloc(XML_BUFLEN); if (!c.buf) { @@ -1278,6 +1278,7 @@ void *recv_tca (void *arg) netceiver_info_t nc_info; struct in6_addr tca; + memset (&c, 0, sizeof (ccpp_thread_context_t)); pthread_cleanup_push (clean_ccpp_thread, &c); c.buf=(xmlChar *)malloc(XML_BUFLEN); |