Fix flrig modeMap loop to ignore NULL entries

https://github.com/Hamlib/Hamlib/issues/798
pull/799/head
Mike Black W9MDB 2021-09-14 11:29:07 -05:00
rodzic 8ab0f0167d
commit 1a7a7a5ae7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -673,6 +673,7 @@ static const char *modeMapGetFLRig(rmode_t modeHamlib)
for (i = 0; modeMap[i].mode_hamlib != 0; ++i)
{
if (modeMap[i].mode_flrig == NULL) continue;
rig_debug(RIG_DEBUG_TRACE,
"%s: checking modeMap[%d]=%.0f to modeHamlib=%.0f, mode_flrig='%s'\n", __func__,
i, (double)modeMap[i].mode_hamlib, (double)modeHamlib, modeMap[i].mode_flrig);