mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
wayland: avoid passing NULL to log_msg() in wayl_reload_xcursor_theme()
This pointer ends up being passed to various printf-family functions, where passing a NULL pointer for an "%s" format specifier invokes undefined behaviour.
This commit is contained in:
parent
c9465e4c5c
commit
f19768e304
1 changed files with 2 additions and 1 deletions
|
|
@ -1704,7 +1704,8 @@ wayl_reload_xcursor_theme(struct seat *seat, int new_scale)
|
|||
const char *xcursor_theme = getenv("XCURSOR_THEME");
|
||||
|
||||
LOG_INFO("cursor theme: %s, size: %d, scale: %d",
|
||||
xcursor_theme, xcursor_size, new_scale);
|
||||
xcursor_theme ? xcursor_theme : "(null)",
|
||||
xcursor_size, new_scale);
|
||||
|
||||
seat->pointer.theme = wl_cursor_theme_load(
|
||||
xcursor_theme, xcursor_size * new_scale, seat->wayl->shm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue