Task #120506 - fixed.err

back to task #120506
download
Error: GCC_ANALYZER_WARNING (CWE-688):
openscap-1.4.5/src/DS/rds_index.c: scope_hint: In function ‘rds_index_get_report_request’
openscap-1.4.5/src/DS/rds_index.c:104:21: warning[-Wanalyzer-null-argument]: use of NULL ‘id’ where non-null expected
openscap-1.4.5/src/common/util.h:34: included_from: Included from here.
openscap-1.4.5/src/common/list.h:34: included_from: Included from here.
openscap-1.4.5/src/DS/rds_index.c:28: included_from: Included from here.
/usr/include/string.h:171:12: note: argument 2 of ‘strcmp’ must be non-null
#  102|   	{
#  103|   		struct rds_report_request_index* rr_index = rds_report_request_index_iterator_next(it);
#  104|-> 		if (strcmp(rds_report_request_index_get_id(rr_index), id) == 0) {
#  105|   			ret = rr_index;
#  106|   			break;