Task #921 - fixed.err

back to task #921
download
Error: CPPCHECK_WARNING:
nautilus-46.0-build/nautilus-46.0/src/nautilus-date-utilities.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476):
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c: scope_hint: In function ‘nautilus_filename_validator_name_is_valid’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:119:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gi18n.h:23: included_from: Included from here.
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:7: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
nautilus-46.0-build/nautilus-46.0/src/nautilus-directory.h:49:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:23: note: in expansion of macro ‘NAUTILUS_IS_DIRECTORY’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:5: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
nautilus-46.0-build/nautilus-46.0/src/nautilus-directory.h:49:4: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:181:23: note: in expansion of macro ‘NAUTILUS_IS_DIRECTORY’
/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.
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:107:12: note: in expansion of macro ‘g_strdup’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c: scope_hint: In function ‘nautilus_filename_validator_name_is_valid’
nautilus-46.0-build/nautilus-46.0/src/nautilus-filename-validator.c:107:12: note: in expansion of macro ‘g_strdup’
#  117|   
#  118|       is_valid = TRUE;
#  119|->     if (strlen (name) == 0)
#  120|       {
#  121|           is_valid = FALSE;