summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:25:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:25:14 +0100
commit9970e03634aed173f3f82bc61540a8af10c76150 (patch)
treefcb718564f6f1b87960c0ccd7e6fe75876e401eb
parent392e1d3a943cdb1a1f7482056144fcb27bab6b15 (diff)
Don't send file to parser if filename is the empty string.
-rw-r--r--lv2/input_lv2.cc1
1 files changed, 1 insertions, 0 deletions
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;