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 10, 2023
1 parent a258058 commit 349320f
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 @@ -750,7 +750,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 349320f

Please sign in to comment.