aboutsummaryrefslogtreecommitdiffstats
path: root/src/ModPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ModPlugin.cpp')
-rw-r--r--src/ModPlugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ModPlugin.cpp b/src/ModPlugin.cpp
index f907ba8..4291a44 100644
--- a/src/ModPlugin.cpp
+++ b/src/ModPlugin.cpp
@@ -104,7 +104,9 @@ int PipelinedModCodec::process(Buffer* dataIn, Buffer* dataOut)
}
else {
dataOut->setLength(dataIn->getLength());
- memset(dataOut->getData(), 0, dataOut->getLength());
+ if (dataOut->getLength() > 0) {
+ memset(dataOut->getData(), 0, dataOut->getLength());
+ }
m_ready_to_output_data = true;
}