[cairo-commit] cairo/src cairo-xlib-surface.c,1.64,1.65

Owen Taylor commit at pdx.freedesktop.org
Fri May 13 08:09:26 PDT 2005


Committed by: otaylor

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv4562/src

Modified Files:
	cairo-xlib-surface.c 
Log Message:
2005-05-13  Owen Taylor  <otaylor at redhat.com>

        * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Fix
        misplaced goto.


Index: cairo-xlib-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-xlib-surface.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- cairo-xlib-surface.c	13 May 2005 06:11:55 -0000	1.64
+++ cairo-xlib-surface.c	13 May 2005 15:09:24 -0000	1.65
@@ -945,9 +945,10 @@
 	    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;
+		    }
 		}
 	    }
 	}




More information about the cairo-commit mailing list