Task #142941 - added.err

back to task #142941
download
Error: GCC_ANALYZER_WARNING (CWE-457):
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:248:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'ret'
sssd-2.14.0/src/util/util.h:58: included_from: Included from here.
sssd-2.14.0/src/providers/simple/simple_access.h:25: included_from: Included from here.
sssd-2.14.0/src/providers/simple/simple_access.c:24: included_from: Included from here.
sssd-2.14.0/src/providers/simple/simple_access.c:217:9: note: in expansion of macro 'DEBUG'
#  246|   
#  247|   immediately:
#  248|->     if (ret != EOK) {
#  249|           tevent_req_error(req, ret);
#  250|       } else {

Error: COMPILER_WARNING (CWE-457):
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:248:8: warning[-Wmaybe-uninitialized]: 'ret' may be used uninitialized
#  248 |     if (ret != EOK) {
#      |        ^
sssd-2.14.0/src/providers/simple/simple_access.c:203:13: note: 'ret' was declared here
#  203 |     errno_t ret;
#      |             ^~~
#  246|   
#  247|   immediately:
#  248|->     if (ret != EOK) {
#  249|           tevent_req_error(req, ret);
#  250|       } else {