From: Tobias Bengfort Date: Sat, 20 Apr 2024 07:27:42 +0000 (+0200) Subject: query: fix crash on missing identifier/title X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=b6ecb1068e81eee01dfaa6f098e913444d401386;p=proto%2Flabwc.git query: fix crash on missing identifier/title --- diff --git a/src/view.c b/src/view.c index 74f5faf6..ee76a746 100644 --- a/src/view.c +++ b/src/view.c @@ -71,13 +71,13 @@ view_matches_query(struct view *view, struct view_query *query) const char *identifier = view_get_string_prop(view, "app_id"); if (match && query->identifier) { empty = false; - match &= match_glob(query->identifier, identifier); + match &= identifier && match_glob(query->identifier, identifier); } const char *title = view_get_string_prop(view, "title"); if (match && query->title) { empty = false; - match &= match_glob(query->title, title); + match &= title && match_glob(query->title, title); } if (match && query->window_type >= 0) {