htsmsg_t *uuids, *l = NULL, *m;
htsmsg_t *flist;
htsmsg_field_t *f;
- const char *uuid, *class;
+ const char *uuid = NULL, *class;
/* Class based */
if ((class = htsmsg_get_str(args, "class"))) {
char id[16];
if (bcast != de->de_bcast) {
if (de->de_bcast) {
- de->de_bcast->putref((epg_object_t*)de->de_bcast);
snprintf(id, sizeof(id), "%u", de->de_bcast->id);
+ de->de_bcast->putref((epg_object_t*)de->de_bcast);
notify_delayed(id, "epg", "dvr_delete");
de->de_bcast = NULL;
}
*/
void dvr_inotify_del ( dvr_entry_t *de )
{
- dvr_entry_t *det;
+ dvr_entry_t *det = NULL;
dvr_inotify_entry_t *e;
lock_assert(&global_lock);
RB_FOREACH(e, &_inot_tree, link) {
while(tvheadend_running) {
readmsg:
+ reply = NULL;
+
if((r = htsp_read_message(htsp, &m, 0)) != 0)
break;
{
int a;
linuxdvb_frontend_t *lfe, *next;
- linuxdvb_adapter_t *la;
+ linuxdvb_adapter_t *la = NULL;
tvh_hardware_t *th;
if (sscanf(path, "/dev/dvb/adapter%d", &a) == 1) {
linuxdvb_frontend_tune1
( linuxdvb_frontend_t *lfe, mpegts_mux_instance_t *mmi, uint32_t freq )
{
- int r, i, rep;
+ int r = 0, i, rep;
char buf1[256], buf2[256];
lfe->mi_display_name((mpegts_input_t*)lfe, buf1, sizeof(buf1));