Skip to content
Snippets Groups Projects
Commit 2af4d5b2 authored by Andy Green's avatar Andy Green
Browse files

remove lws_ensure_user_space from public api change return


The function has a logical problem when the size of the requested
allocation is 0, it will return NULL which is overloaded as
failure.

Actually the whole function is evil as an api, this patch moves
it out of the public API space and fixes it to return 0 for
success or 1 for fail.  Private code does not need to to return
wsi->user_space and public code should only get that from the
callback as discussed on trac recently.

Thanks to Edwin for debugging the problem.

Reported-by: default avatarEdwin van den Oetelaar <oetelaar.automatisering@gmail.com>
Signed-off-by: default avatarAndy Green <andy.green@linaro.org>
parent cb8febdd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment