$NetBSD: patch-af,v 1.1 2005/01/15 00:10:41 cube Exp $

--- gdk-pixbuf/io-gif.c.orig	2002-12-18 19:49:01.000000000 +0000
+++ gdk-pixbuf/io-gif.c
@@ -617,7 +617,7 @@ clip_frame (GifContext *context, int *x,
 	*w = MIN (context->width, context->x_offset + context->frame_len) - *x;
 	*h = MIN (context->height, context->y_offset + context->frame_height) - *y;
 
-	if (w > 0 && h > 0)
+	if (*w > 0 && *h > 0)
 		return;
 
 	/* The frame is completely off-bounds */
