From b1f2f7b57848ca84d9d4230e7f9a875831b549e7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 May 2012 18:39:16 +0000 Subject: Avoid possibly creating a variable length array of size 0. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4385 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/InputPort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index b3819715..ebe5d41d 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -184,7 +184,7 @@ InputPort::pre_process(Context& context) _buffers->at(v)->prepare_read(context); } } else { - uint32_t max_num_srcs = 0; + uint32_t max_num_srcs = 1; for (Edges::const_iterator e = _edges.begin(); e != _edges.end(); ++e) { max_num_srcs += e->tail()->poly(); } -- cgit v1.2.1