[PATCH weston] simple-shm: Don't use ret variable in main() uninitialized

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Wed Oct 17 03:49:08 PDT 2012


---
 clients/simple-shm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/simple-shm.c b/clients/simple-shm.c
index d03bed6..a09ec91 100644
--- a/clients/simple-shm.c
+++ b/clients/simple-shm.c
@@ -328,7 +328,7 @@ main(int argc, char **argv)
 	struct sigaction sigint;
 	struct display *display;
 	struct window *window;
-	int ret;
+	int ret = 0;
 
 	display = create_display();
 	window = create_window(display, 250, 250);
-- 
1.7.9.5



More information about the wayland-devel mailing list