[PATCH] compositor: Initialize xserver variable

Scott Moreau oreaus at gmail.com
Wed Apr 25 09:03:06 PDT 2012


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;
 
-- 
1.7.4.1



More information about the wayland-devel mailing list