fixed potetial segmentation fault

This commit is contained in:
Robert 2009-12-19 18:31:52 +00:00
parent 56f50c4bc2
commit 81ca007bf3

View file

@ -112,7 +112,7 @@ dvb_transport_start(th_transport_t *t, unsigned int weight, int force_start)
if(tda->tda_rootpath == NULL)
return 1; /* hardware not present */
if(!tdmi->tdmi_enabled)
if(tdmi && !tdmi->tdmi_enabled)
return 1; /* Mux is disabled */
/* Check if adapter is idle, or already tuned */