Fix sscanf compare in flrig.c

pull/1640/head
Michael Black W9MDB 2024-12-22 10:35:06 -06:00
rodzic 57c5047c3e
commit 62b0a25a3d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -910,7 +910,7 @@ static int flrig_open(RIG *rig)
int dummy;
if (retval == RIG_ENAVAIL || value[0] == 0
|| sscanf(value, "%d", &dummy) == 0) // must not have it
|| sscanf(value, "%d", &dummy) <= 0) // must not have it
{
priv->has_get_bwA = 0;
priv->has_get_bwB = 0; // if we don't have A then surely we don't have B either