2009-03-06 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-range-editor.c
index 804b9fc..690ae7e 100644 (file)
@@ -669,7 +669,9 @@ hildon_range_editor_size_allocate               (GtkWidget *widget,
                                                  GtkAllocation *allocation)
 {
     HildonRangeEditorPrivate *priv;
-    GtkAllocation child1_allocation, child2_allocation, child3_allocation;
+    GtkAllocation child1_allocation = {0};
+    GtkAllocation child2_allocation = {0};
+    GtkAllocation child3_allocation = {0};
 
     priv = HILDON_RANGE_EDITOR_GET_PRIVATE (widget);
     g_assert (priv);
@@ -896,10 +898,7 @@ hildon_range_editor_get_range                   (HildonRangeEditor *editor,
                                                  gint *start,
                                                  gint *end)
 {
-    HildonRangeEditorPrivate *priv;
-
     g_return_if_fail (HILDON_IS_RANGE_EDITOR (editor) && start && end);
-    priv = HILDON_RANGE_EDITOR_GET_PRIVATE (editor);
 
     *start = hildon_range_editor_get_lower (editor);
     *end = hildon_range_editor_get_higher (editor);