Skip to content
Commit c7fc1e79 authored by Simon Ser's avatar Simon Ser
Browse files

util: set errno when hitting WL_MAP_MAX_OBJECTS

Callers may check errno when wl_map_insert_* functions return an
error (since [1]). Make sure it's always set to a meaningful value
when returning an error, otherwise callers might end up checking an
errno coming from a completely different function.

[1]: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/205



Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Fixes: b19488c7 ("util: Limit size of wl_map")
parent 8e322a5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment