diff --git a/prosistel/prosistel.c b/prosistel/prosistel.c index 5fc94eafc..e9ea6b80e 100644 --- a/prosistel/prosistel.c +++ b/prosistel/prosistel.c @@ -119,7 +119,7 @@ transaction_write: } //check if reply match issued command - if (data[0] == 0x02 && data[3] == cmdstr[2]) + if ( cmdstr && data[0] == 0x02 && data[3] == cmdstr[2]) { rig_debug(RIG_DEBUG_VERBOSE, "%s Command %c reply received\n", __func__, data[3]);