Skip to content
Commit bde270b1 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Fabio Baltieri
Browse files

tests: lib: notify: Fix uninitialised variable warning



This commit sets an initial value of 0 for the `res` variable, whose
pointer is passed to other functions and is not directly assigned
within the calling function.

Note that, when the test completes successfully, the value of the `res`
variable should be set to `423` (the value of `set_res`).

This fixes the "‘res’ may be used uninitialized" warning generated by
the GCC 12.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent 687e5a71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment