diff --git a/rigs/flexradio/dttsp.c b/rigs/flexradio/dttsp.c index 84ac41962..b9ad58ad9 100644 --- a/rigs/flexradio/dttsp.c +++ b/rigs/flexradio/dttsp.c @@ -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); }