OSD: fix segfault when no app_id is set

This commit is contained in:
ARDiDo 2021-12-03 16:16:59 -05:00
parent d568c60003
commit 59af8e0986

View file

@ -44,6 +44,9 @@ static const char *
get_formatted_app_id(struct view *view)
{
char *s = (char *)view_get_string_prop(view, "app_id");
if (s == NULL) {
return NULL;
}
/* remove the first two nodes of 'org.' strings */
if (!strncmp(s, "org.", 4)) {
char *p = s + 4;