aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-30 21:39:57 +0800
committerMilan Crha <mcrha@redhat.com>2011-09-30 21:39:57 +0800
commit4c56856e05c6ab1468fe8ace4b73ac31b333990b (patch)
tree98304dd391494a7f9cc1aecebb99fe3b0f328377 /widgets
parent2def4a73864c87c4dee25b04180c882e72a0fee1 (diff)
downloadgsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.gz
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.bz2
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.lz
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.xz
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.zst
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.zip
Fix few 'may be used uninitialized' compiler warnings
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-group-container.c5
-rw-r--r--widgets/text/e-reflow.c2
2 files changed, 3 insertions, 4 deletions
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;
diff --git a/widgets/text/e-reflow.c b/widgets/text/e-reflow.c
index 37cfef1e1b..296d732590 100644
--- a/widgets/text/e-reflow.c
+++ b/widgets/text/e-reflow.c
@@ -1398,7 +1398,7 @@ e_reflow_point (GnomeCanvasItem *item,
gint cx,
gint cy)
{
- GnomeCanvasItem *child;
+ GnomeCanvasItem *child = NULL;
if (GNOME_CANVAS_ITEM_CLASS (e_reflow_parent_class)->point)
child = GNOME_CANVAS_ITEM_CLASS (e_reflow_parent_class)->point (item, x, y, cx, cy);