[PATCH] compositor: Initialize xserver variable

Pekka Paalanen ppaalanen at gmail.com
Wed Apr 25 22:54:12 PDT 2012


On Wed, 25 Apr 2012 10:03:06 -0600
Scott Moreau <oreaus at gmail.com> wrote:

> This variable is used unitialized if --xserver is not passed to weston.
> ---
>  src/compositor.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/compositor.c b/src/compositor.c
> index 768477d..e8ef946 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -2639,7 +2639,7 @@ int main(int argc, char *argv[])
>  	char *backend = NULL;
>  	char *shell = NULL;
>  	int32_t idle_time = 300;
> -	int32_t xserver;
> +	int32_t xserver = 0;
>  	char *socket_name = NULL;
>  	char *config_file;
>  

Ha! You beat me to it :-D


Excellent,
pq


More information about the wayland-devel mailing list