src/gui/adzap.cpp init before use

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6e8c1cac96
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-05-23 (Tue, 23 May 2017)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-05-23 17:48:15 +02:00
parent c6c255a2f2
commit bf7c16e8d6

View File

@@ -66,15 +66,16 @@ CAdZapMenu::CAdZapMenu()
sem_init(&sem, 0, 0);
channelId = -1;
armed = false;
monitor = false;
alerted = false;
pthread_t thr;
if (pthread_create(&thr, 0, CAdZapMenu::Run, this))
fprintf(stderr, "ERROR: pthread_create(CAdZapMenu::CAdZapMenu)\n");
else
pthread_detach(thr);
channelId = -1;
armed = false;
monitor = false;
alerted = false;
}
static bool sortByDateTime(const CChannelEvent & a, const CChannelEvent & b)