core dump fix if radioinfo=NULL.
FossilOrigin-Name: 0935827c278f4dbfd99b1f3cf2ff50162e0099392feeb1e1a044879058281cf6
This commit is contained in:
parent
5eb00fb6c8
commit
7f34922cf5
@ -53,7 +53,10 @@ void cwmsg_init(struct cwmsg * cwmsg, uint8_t *buffer, int type, int seqnum, str
|
||||
|
||||
cwmsg->pos=0;
|
||||
cwmsg->hlen=hlen/4;
|
||||
cwmsg->rid=radioinfo->rid;
|
||||
if (radioinfo)
|
||||
cwmsg->rid=radioinfo->rid;
|
||||
else
|
||||
cwmsg->rid=0;
|
||||
cwmsg->seqnum=seqnum;
|
||||
cwmsg->type=type;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user