Skip to content
Commit 0d5850e6 authored by David Herrmann's avatar David Herrmann Committed by Kristian Høgsberg
Browse files

wayland-util: return -1 if wl_array_copy() fails



We might have to perform memory allocations in wl_array_copy(), so catch
out-of-memory errors in wl_array_add() and return -1 before changing any
state.

Signed-off-by: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
parent 66e4aa98
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