summaryrefslogtreecommitdiff
path: root/lv2/lv2.cc
diff options
context:
space:
mode:
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);