mirror of
https://github.com/labwc/labwc.git
synced 2025-11-10 13:30:00 -05:00
project wide: adapt to new non-NULL value of view_get_string_prop()
This commit is contained in:
parent
023427b4f4
commit
c772224a54
4 changed files with 11 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue