aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/filters/filter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/filters/filter.cpp b/src/lib/filters/filter.cpp
index 3eb924172..de678f537 100644
--- a/src/lib/filters/filter.cpp
+++ b/src/lib/filters/filter.cpp
@@ -27,6 +27,9 @@ Filter::Filter()
*/
void Filter::send(const byte input[], size_t length)
{
+ if(!length)
+ return;
+
bool nothing_attached = true;
for(size_t j = 0; j != total_ports(); ++j)
if(next[j])