summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-19 18:16:50 +0000
committerDavid Robillard <d@drobilla.net>2008-09-19 18:16:50 +0000
commitf201dc3e3c06f888f097ed6d378a597e99e244fd (patch)
tree01502833cdf1e36eb164e2114574871387f0150b /gtk2_ardour/editor.cc
parent48a8363080c0b9c79ace0b0b70943ed4ce074d26 (diff)
Fix a bunch of stupid warnings.
Q: What's a lot harder than initializing a variable? A: Fixing future non-deterministic bugs that would have been deterministic if you initialized the damn variable :) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3767 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index d97867bb69..b841efb542 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -2278,7 +2278,7 @@ Editor::set_edit_point_preference (EditPoint ep, bool force)
break;
}
- const char* action;
+ const char* action=NULL;
switch (_edit_point) {
case EditAtPlayhead:
@@ -4382,7 +4382,7 @@ Editor::idle_visual_changer ()
if (p & VisualChange::TimeOrigin) {
- nframes64_t csf, cef;
+ nframes64_t csf=0, cef=0;
nframes64_t current_time_origin = (nframes64_t) floor (horizontal_adjustment.get_value() * frames_per_unit);
if (session) {