From 392e1d3a943cdb1a1f7482056144fcb27bab6b15 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 16:24:36 +0100 Subject: Only send config to parser if size is > 0. --- lv2/lv2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lv2') 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); -- cgit v1.2.3