[PATCH weston] clients/nested: fix boolean test

Eric Engestrom eric.engestrom at imgtec.com
Mon Sep 11 14:40:22 UTC 2017


On Monday, 2017-09-11 13:52:28 +0100, Eric Engestrom wrote:
> weston_check_egl_extension() returns a bool, not a pointer.
> 
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>

Fixes: ce5b614c80b4dfe8e899 "clients/nested: use weston_check_egl_extension
                             over strstr"
Cc: Emil Velikov <emil.velikov at collabora.com>

> ---
>  clients/nested.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/clients/nested.c b/clients/nested.c
> index 173076a6..e9070e9b 100644
> --- a/clients/nested.c
> +++ b/clients/nested.c
> @@ -748,7 +748,7 @@ nested_init_compositor(struct nested *nested)
>  
>  	nested->egl_display = display_get_egl_display(nested->display);
>  	extensions = eglQueryString(nested->egl_display, EGL_EXTENSIONS);
> -	if (weston_check_egl_extension(extensions, "EGL_WL_bind_wayland_display") == NULL) {
> +	if (!weston_check_egl_extension(extensions, "EGL_WL_bind_wayland_display")) {
>  		fprintf(stderr, "no EGL_WL_bind_wayland_display extension\n");
>  		return -1;
>  	}
> -- 
> Cheers,
>   Eric
> 


More information about the wayland-devel mailing list