Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pixbuf
diff options
context:
space:
mode:
authorJeff Muizelaar <jrmuizel@nit.ca>2005-01-13 15:27:03 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-01-13 15:27:03 (GMT)
commit7948e72232c7779e3ba17052803e620d73084ad0 (patch)
tree8d6494b1d0ae5377fc7a9b62af873d62a897517e /pixbuf
parent60c1f92549b90d0fdc6ce4e069ed0e25d0fa9689 (diff)
check for NULL before assigning to width and height parameters
2005-01-12 Jeff Muizelaar <jrmuizel@nit.ca> * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size): check for NULL before assigning to width and height parameters
Diffstat (limited to 'pixbuf')
-rw-r--r--pixbuf/pixbuf-document.c6
1 files changed, 4 insertions, 2 deletions
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