summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-11-05 09:11:35 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-11-05 09:12:05 +0100
commitf94e0d52f183b9fc0aec9f72c425240959041b6f (patch)
tree73b9f2bf88d14c9947aa40397a5937c16b263bcd /bin
parent80ac5c5d183d6efc3e554a638770637086f0fb78 (diff)
downloaduca-f94e0d52f183b9fc0aec9f72c425240959041b6f.tar.gz
uca-f94e0d52f183b9fc0aec9f72c425240959041b6f.tar.bz2
uca-f94e0d52f183b9fc0aec9f72c425240959041b6f.tar.xz
uca-f94e0d52f183b9fc0aec9f72c425240959041b6f.zip
Fix uninitialized variables
Diffstat (limited to 'bin')
-rw-r--r--bin/gui/control.c4
-rw-r--r--bin/gui/egg-property-cell-renderer.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/gui/control.c b/bin/gui/control.c
index 2ad7af5..a73a6c1 100644
--- a/bin/gui/control.c
+++ b/bin/gui/control.c
@@ -87,13 +87,13 @@ up_and_down_scale (ThreadData *data, gpointer buffer)
gdouble min;
gdouble max;
gdouble factor;
- gdouble dval;
+ gdouble dval = 0.0;
gboolean do_log;
guint8 *output;
gint i = 0;
gint zoom;
gint stride;
- gint offset;
+ gint offset = 0;
gint start_wval;
gint start_hval;
diff --git a/bin/gui/egg-property-cell-renderer.c b/bin/gui/egg-property-cell-renderer.c
index 9df5cc3..825f4a2 100644
--- a/bin/gui/egg-property-cell-renderer.c
+++ b/bin/gui/egg-property-cell-renderer.c
@@ -119,7 +119,7 @@ egg_property_cell_renderer_set_renderer (EggPropertyCellRenderer *renderer,
EggPropertyCellRendererPrivate *priv;
GParamSpec *pspec;
gchar *text = NULL;
- gdouble number;
+ gdouble number = 0.0;
priv = EGG_PROPERTY_CELL_RENDERER_GET_PRIVATE (renderer);
pspec = get_pspec_from_object (priv->object, prop_name);