diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 16:24:36 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-30 16:24:36 +0100 |
commit | 392e1d3a943cdb1a1f7482056144fcb27bab6b15 (patch) | |
tree | 9625c601eb17fa7d0465670d582b441f73fab648 | |
parent | 77c8eeaf9b632c2fc95e2b0d9c026f0b1741037b (diff) |
Only send config to parser if size is > 0.
-rw-r--r-- | lv2/lv2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |