From b64ffd137d9e6f9ca8b16ebf00a2968c5892d0d5 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 17 Mar 2016 16:53:35 +0100 Subject: [PATCH] Found a couple uninitialized variables through valgrind --- src/source.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source.h b/src/source.h index 709f78e..1e0a3b0 100644 --- a/src/source.h +++ b/src/source.h @@ -116,8 +116,8 @@ namespace Source { Tooltips type_tooltips; virtual void show_diagnostic_tooltips(const Gdk::Rectangle &rectangle) {} virtual void show_type_tooltips(const Gdk::Rectangle &rectangle) {} - gdouble on_motion_last_x; - gdouble on_motion_last_y; + gdouble on_motion_last_x=0.0; + gdouble on_motion_last_y=0.0; void set_tooltip_and_dialog_events(); std::string get_line(const Gtk::TextIter &iter);