Skip to content
Commit 469accfb authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Ioannis Glaropoulos
Browse files

native_posix: Check pointer before de-referencing it

To avoid a Coverity warning (203449):
https://github.com/zephyrproject-rtos/zephyr/issues/18354



Initialize a pointer to NULL, and check it later before
de-referencing it.
Coverity could not see that posix_print_error_and_exit()
never returns even that it ends with exit()

Signed-off-by: default avatarAlberto Escolar Piedras <alpi@oticon.com>
parent 43fc6a7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment