Fix uninitialized warning in rig.c

https://github.com/Hamlib/Hamlib/issues/762
    https://github.com/Hamlib/Hamlib/issues/430
This commit is contained in:
Mike Black W9MDB 2021-08-27 15:51:02 -05:00
parent f6b54df7c7
commit b41f706eda

View file

@ -2950,6 +2950,7 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
/* try and revert even if we had an error above */
TRACE;
rc2 = RIG_OK;
if (!targetable_ptt)
{
rc2 = caps->set_vfo(rig, curr_vfo);