Task #97231 - added.err

back to task #97231
download
Error: GCC_ANALYZER_WARNING (CWE-688):
libblockdev-3.4.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.4.0/src/utils/dev_utils.c:38:9: warning[-Wanalyzer-null-argument]: use of NULL 'path' 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.
libblockdev-3.4.0/src/utils/dev_utils.c:20: included_from: Included from here.
libblockdev-3.4.0/src/utils/dev_utils.c:70:16: note: in expansion of macro 'g_strdup'
libblockdev-3.4.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.4.0/src/utils/dev_utils.c:22: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of 'stat' must be non-null
#   36|       struct stat sb;
#   37|   
#   38|->     if (stat (path, &sb) != 0) {
#   39|           g_set_error (error, BD_UTILS_DEV_UTILS_ERROR, BD_UTILS_DEV_UTILS_ERROR_FAILED,
#   40|                        "Failed to stat '%s': %s", path, strerror_l (errno, _C_LOCALE));