Task #143185 - added.err

back to task #143185
download
Error: GCC_ANALYZER_WARNING (CWE-457):
sssd-2.14.0/src/util/util.h:876:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ret'
sssd-2.14.0/src/providers/simple/simple_access.c: scope_hint: In function 'simple_access_handler_send'
sssd-2.14.0/src/util/util.h:58: included_from: Included from here.
sssd-2.14.0/src/providers/simple/simple_access.c:217:9: note: in expansion of macro 'DEBUG'
#  874|                                           errno_t ret)
#  875|   {
#  876|->     if (ret != EOK) {
#  877|           tevent_req_error(req, ret);
#  878|       } else {

Error: COMPILER_WARNING (CWE-457):
sssd-2.14.0/src/util/util.h:876:8: warning[-Wmaybe-uninitialized]: 'ret' may be used uninitialized
#  876 |     if (ret != EOK) {
#      |        ^
sssd-2.14.0/src/providers/simple/simple_access.c: scope_hint: In function 'simple_access_handler_send'
sssd-2.14.0/src/providers/simple/simple_access.c:203:13: note: 'ret' was declared here
#  203 |     errno_t ret;
#      |             ^~~
#  874|                                           errno_t ret)
#  875|   {
#  876|->     if (ret != EOK) {
#  877|           tevent_req_error(req, ret);
#  878|       } else {