From 9970e03634aed173f3f82bc61540a8af10c76150 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 16:25:14 +0100 Subject: Don't send file to parser if filename is the empty string. --- lv2/input_lv2.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'lv2') diff --git a/lv2/input_lv2.cc b/lv2/input_lv2.cc index 3659528..11e79a6 100644 --- a/lv2/input_lv2.cc +++ b/lv2/input_lv2.cc @@ -116,6 +116,7 @@ void InputLV2::post() void InputLV2::loadMidiMap(std::string f) { + if(f == "") return; MidiMapParser p(f); if(p.parse()) {/*return false;*/} mmap.midimap = p.midimap; -- cgit v1.2.3