]> git.mdlowis.com Git - proto/labwc.git/commit
view: fix NULL string_prop crash
authorJohan Malm <jgm323@gmail.com>
Fri, 27 Dec 2024 22:37:35 +0000 (22:37 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 29 Dec 2024 13:06:30 +0000 (13:06 +0000)
commit023427b4f4bedbd74697e42261033932738b2fd8
tree8a8036a883b3131d0df5190f993e3ea9b6f57def
parentbad788ccdd04c8ce42fc43fd3a9d614e27813ad6
view: fix NULL string_prop crash

...when app_id is NULL.

Make sure view_get_string_prop() never returns NULL because it is so easy
to misuse. Same for the respective xwayland/xdg impl methods in case
anyone decides to (incorrectly) call them directly in future.

Fixes: #2453
src/view.c
src/xdg.c
src/xwayland.c