diff options
Diffstat (limited to 'lv2')
-rw-r--r-- | lv2/input_lv2.cc | 1 | ||||
-rw-r--r-- | lv2/lv2.cc | 2 |
2 files changed, 2 insertions, 1 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; @@ -157,7 +157,7 @@ dg_restore(LV2_Handle instance, &size, &type, &flags); DEBUG(lv2, "Config string size: %d, data*: %p\n", size, data); - if(data) { + if(data && size) { std::string config; config.append(data, size - 1); dglv2->dg->setConfigString(config); |