Task #108 - added.err
back to task #108download
Error: GCC_ANALYZER_WARNING (CWE-688): libreport-2.17.15/src/lib/workflow_xml_parser.c: scope_hint: In function 'load_workflow_description_from_file' libreport-2.17.15/src/lib/workflow_xml_parser.c:198:42: warning[-Wanalyzer-null-argument]: use of NULL 'parse_data.cur_locale' where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. libreport-2.17.15/src/include/workflow.h:22: included_from: Included from here. libreport-2.17.15/src/lib/workflow_xml_parser.c:19: included_from: Included from here. libreport-2.17.15/src/lib/workflow_xml_parser.c:197:29: note: in expansion of macro 'g_strdup' libreport-2.17.15/src/lib/workflow_xml_parser.c: scope_hint: In function 'load_workflow_description_from_file' /usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/string.h:286:14: note: argument 1 of 'strchrnul' must be non-null # 196| struct my_parse_data parse_data = { workflow, NULL, NULL, 0, 0, 0}; # 197| parse_data.cur_locale = g_strdup(setlocale(LC_ALL, NULL)); # 198|-> strchrnul(parse_data.cur_locale, '.')[0] = '\0'; # 199| # 200| GMarkupParser parser;