Fix the build with -Werror=maybe-uninitialized

gcc can't really know that the condition won't change between
the first if and the second, so help it out by initializing
the variable up top.
This commit is contained in:
Matthias Clasen 2014-03-27 14:58:20 -04:00
parent 3f70bdd331
commit f4f529385a

View File

@ -517,7 +517,7 @@ meta_compositor_manage (MetaCompositor *compositor)
MetaDisplay *display = compositor->display;
Display *xdisplay = display->xdisplay;
MetaScreen *screen = display->screen;
Window xwin;
Window xwin = 0;
gint width, height;
MetaWaylandCompositor *wayland_compositor;