Fix potential null reference in dttsp.c

pull/506/head
Michael Black W9MDB 2021-01-09 12:03:29 -06:00
rodzic ca8ed30f8f
commit a4d9e61f5a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -660,7 +660,7 @@ int dttsp_cleanup(RIG *rig)
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (priv->tuner)
if (priv && priv->tuner)
{
rig_cleanup(priv->tuner);
}