project wide: adapt to new non-NULL value of view_get_string_prop()

This commit is contained in:
Consolatis 2024-12-29 02:18:27 +01:00 committed by Johan Malm
parent 023427b4f4
commit c772224a54
4 changed files with 11 additions and 13 deletions

View file

@ -37,7 +37,7 @@ get_app_id_or_class(struct view *view, bool trim)
const char *identifier = view_get_string_prop(view, "app_id");
/* remove the first two nodes of 'org.' strings */
if (trim && identifier && !strncmp(identifier, "org.", 4)) {
if (trim && !strncmp(identifier, "org.", 4)) {
char *p = (char *)identifier + 4;
p = strchr(p, '.');
if (p) {