summaryrefslogtreecommitdiff
path: root/lv2/lv2.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:24:36 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 16:24:36 +0100
commit392e1d3a943cdb1a1f7482056144fcb27bab6b15 (patch)
tree9625c601eb17fa7d0465670d582b441f73fab648 /lv2/lv2.cc
parent77c8eeaf9b632c2fc95e2b0d9c026f0b1741037b (diff)
Only send config to parser if size is > 0.
Diffstat (limited to 'lv2/lv2.cc')
-rw-r--r--lv2/lv2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lv2/lv2.cc b/lv2/lv2.cc
index 87ab09d..4916cf2 100644
--- a/lv2/lv2.cc
+++ b/lv2/lv2.cc
@@ -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);