projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f57303f
)
Quell warning about potentially uninitialized variable 'surface'
author
Bryce Harrington
<bryce@canonical.com>
Fri, 19 Nov 2010 20:14:55 +0000
(12:14 -0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 22 Nov 2010 15:48:52 +0000
(10:48 -0500)
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 <bryce@canonical.com>
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index d59734845f3ed0c6f742e64a3c709451c6d2e80e..56124e97e7cf5e4748bfdcb2f8b818e9448af2f7 100644
(file)
--- 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);