From 4c56856e05c6ab1468fe8ace4b73ac31b333990b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 30 Sep 2011 15:39:57 +0200 Subject: Fix few 'may be used uninitialized' compiler warnings --- widgets/table/e-table-group-container.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index d874834db1..7d04eda9d9 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -1252,7 +1252,7 @@ e_table_group_container_print_page (EPrintable *ep, gboolean quantize, ETGCPrintContext *groupcontext) { - cairo_t *cr; + cairo_t *cr = NULL; GtkPageSetup *setup; gdouble yd; gdouble page_height, page_margin; @@ -1301,8 +1301,7 @@ e_table_group_container_print_page (EPrintable *ep, child_height = e_printable_height (child_printable, context, width,yd, quantize); if (child_height < 0) child_height = -child_height; - if (yd < 2 * TEXT_AREA_HEIGHT + 20 + child_height ) - { + if (cr && yd < 2 * TEXT_AREA_HEIGHT + 20 + child_height) { cairo_show_page (cr); cairo_translate (cr, -2 * TEXT_AREA_HEIGHT, -TEXT_AREA_HEIGHT); break; -- cgit