Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f75c9ae5 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by github-actions[bot]
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>
(cherry picked from commit bde270b1)
parent 2cd7fa9c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment