Fix segfault when using rig_get_info stacked calls

rigctl get_vfo_info VFOA get_vfo_info VFOB
pull/712/head
Mike Black W9MDB 2021-05-25 08:09:01 -05:00
rodzic 2acbd22173
commit 39951dc288
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1738,7 +1738,7 @@ readline_repeat:
rig_debug(RIG_DEBUG_TRACE, "%s: retcode=%d\n", __func__, retcode);
#ifdef HAVE_LIBREADLINE
if ((result = strtok(NULL, " "))) goto readline_repeat;
if (input_line != NULL && (result = strtok(NULL, " "))) goto readline_repeat;
#endif
if (sync_cb) { sync_cb(0); } /* unlock if necessary */