mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
OSD: fix segfault when no app_id is set
This commit is contained in:
parent
d568c60003
commit
59af8e0986
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue