summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/osmo-sim-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index 244c2df3..9d1b481a 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -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",