Fix misplaced goto.

This commit is contained in:
Owen Taylor 2005-05-13 08:09:24 +00:00
parent 7c4a2b1d6e
commit 9ebf15e960
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-05-13 Owen Taylor <otaylor@redhat.com>
* src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Fix
misplaced goto.
2005-05-12 Carl Worth <cworth@cworth.org>
* src/cairoint.h:

View file

@ -945,9 +945,10 @@ _cairo_xlib_surface_create_internal (Display *dpy,
for (j = 0; j < screen->ndepths; j++) {
Depth *depth = &screen->depths[j];
for (k = 0; k < depth->nvisuals; k++) {
if (&depth->visuals[k] == visual)
if (&depth->visuals[k] == visual) {
surface->depth = depth->depth;
goto found;
goto found;
}
}
}
}