mirror of https://gerrit.osmocom.org/libosmocore
osmo-sim-test: Fix read_binary() return check
if we expect rmsg to be set, we should check for it...
This commit is contained in:
parent
881b5169e5
commit
d6ec984c51
|
@ -350,7 +350,7 @@ static int dump_file(struct osim_chan_hdl *chan, uint16_t fid)
|
|||
uint16_t remain_len = i - offset;
|
||||
uint16_t read_len = OSMO_MIN(remain_len, 256);
|
||||
rmsg = read_binary(chan, offset, read_len);
|
||||
if (!msg)
|
||||
if (!rmsg)
|
||||
return -EIO;
|
||||
offset += read_len;
|
||||
printf("Content: %s\n",
|
||||
|
|
Loading…
Reference in New Issue