Skip to content

Commit

Permalink
iiod: Fix use of uninitialized variable
Browse files Browse the repository at this point in the history
A iio_err() check was performed on the wrong variable.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Oct 5, 2023
1 parent c6cfa50 commit ffde142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iiod/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ static void handle_transfer_block(struct parser_pdata *pdata,
int ret;

buf = get_iio_buffer(pdata, cmd, &entry);
ret = iio_err(block);
ret = iio_err(buf);
if (ret)
goto out_send_response;

Expand Down

0 comments on commit ffde142

Please sign in to comment.