initialize uninitialized variable
authorRobin Gareus <robin@gareus.org>
Tue, 17 Mar 2015 03:11:19 +0000 (04:11 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 17 Mar 2015 03:11:19 +0000 (04:11 +0100)
just another hint for clang/static analysis.

gtk2_ardour/selection.cc

index 309e4239fb09bd7dded471af69ba2f655b32b832..0118c1c679b4f74d64fa2a572c33712ae60cad6b 100644 (file)
@@ -1233,7 +1233,7 @@ Selection::get_state () const
        }
 
        /* midi region views have thir own internal selection. */
-       XMLNode* n;
+       XMLNode* n = NULL;
        list<pair<PBD::ID, std::set<boost::shared_ptr<Evoral::Note<Evoral::Beats> > > > > rid_notes;
        editor->get_per_region_note_selection (rid_notes);
        if (!rid_notes.empty()) {