Fix segfault when using rig_get_info stacked calls

rigctl get_vfo_info VFOA get_vfo_info VFOB
This commit is contained in:
Mike Black W9MDB 2021-05-25 08:09:01 -05:00
parent 2acbd22173
commit 39951dc288

View file

@ -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 */