Task #1319 - fixed.err

back to task #1319
download
Error: GCC_ANALYZER_WARNING (CWE-688):
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c: scope_hint: In function ‘should_skip_window’
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:213:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
/usr/include/gtk-4.0/gtk/css/gtkcss.h:29: included_from: Included from here.
/usr/include/gtk-4.0/gtk/gtk.h:29: included_from: Included from here.
/usr/include/libadwaita-1/adwaita.h:9: included_from: Included from here.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:21: included_from: Included from here.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:241:24: note: in expansion of macro ‘g_ptr_array_index’
/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.
xdg-desktop-portal-gnome-46.0-build/xdg-desktop-portal-gnome-46.0/src/screencastwidget.c:211:22: note: in expansion of macro ‘g_strdup’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  211|     processed_app_id = g_strdup (window_get_app_id (window));
#  212|     if (g_str_has_suffix (processed_app_id, ".desktop"))
#  213|->     processed_app_id[strlen (processed_app_id) -
#  214|                        strlen (".desktop")] = '\0';
#  215|