From 515f63ad72a8ea8f3435a5982dd24209835a2af1 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Fri, 19 Nov 2010 12:14:55 -0800 Subject: [PATCH] Quell warning about potentially uninitialized variable 'surface' In theory, it was possible for an undefined 'surface' to be passed to window_set_surface(). Instead, explicitly pass NULL. Signed-off-by: Bryce Harrington --- clients/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clients/window.c b/clients/window.c index d597348..56124e9 100644 --- a/clients/window.c +++ b/clients/window.c @@ -600,6 +600,9 @@ window_create_surface(struct window *window) surface = display_create_shm_surface(window->display, &window->allocation); break; + default: + surface = NULL; + break; } window_set_surface(window, surface); -- 2.7.4