From 7948e72232c7779e3ba17052803e620d73084ad0 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Thu, 13 Jan 2005 15:27:03 +0000 Subject: check for NULL before assigning to width and height parameters 2005-01-12 Jeff Muizelaar * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size): check for NULL before assigning to width and height parameters --- (limited to 'pixbuf') diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index 843df3d..f0c3997 100644 --- a/pixbuf/pixbuf-document.c +++ b/pixbuf/pixbuf-document.c @@ -135,8 +135,10 @@ pixbuf_document_get_page_size (EvDocument *document, { PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document); - *width = gdk_pixbuf_get_width (pixbuf_document->pixbuf); - *height = gdk_pixbuf_get_height (pixbuf_document->pixbuf); + if (width) + *width = gdk_pixbuf_get_width (pixbuf_document->pixbuf); + if (height) + *height = gdk_pixbuf_get_height (pixbuf_document->pixbuf); } static void -- cgit v0.9.1