diff --git a/src/input/mpegts/linuxdvb/linuxdvb_adapter.c b/src/input/mpegts/linuxdvb/linuxdvb_adapter.c index 406095a5..f15b41e2 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_adapter.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_adapter.c @@ -168,7 +168,7 @@ linuxdvb_adapter_add ( const char *path ) struct dvb_frontend_info dfi; SHA_CTX sha1; uint8_t uuidbin[20]; - htsmsg_t *conf = NULL, *feconf = NULL; + htsmsg_t *conf, *feconf; #if DVB_VER_ATLEAST(5,10) int fetypes[4] = { 0 }; struct dtv_property cmd = { @@ -194,6 +194,8 @@ linuxdvb_adapter_add ( const char *path ) /* Process each frontend */ for (i = 0; i < 32; i++) { + conf = feconf = NULL; + snprintf(fe_path, sizeof(fe_path), FE_PATH, path, i); /* Wait for access (first FE can take a fe ms to be setup) */ @@ -298,7 +300,6 @@ linuxdvb_adapter_add ( const char *path ) #endif pthread_mutex_unlock(&global_lock); htsmsg_destroy(conf); - conf = feconf = NULL; } /* Relock before exit */