From e1fc51c3a1d944193032d8bb1d95741d090b6d3b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 9 Oct 2011 16:41:04 +0000 Subject: checked in pd-0.43-1test4.src.tar.gz svn path=/trunk/; revision=15558 --- pd/src/d_ugen.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pd/src/d_ugen.c') diff --git a/pd/src/d_ugen.c b/pd/src/d_ugen.c index 3fa7db54..1ed39600 100644 --- a/pd/src/d_ugen.c +++ b/pd/src/d_ugen.c @@ -617,6 +617,12 @@ t_dspcontext *ugen_start_graph(int toplevel, t_signal **sp, if (ugen_loud) post("ugen_start_graph..."); + /* protect against invalid numsignals + * this might happen if we have an abstraction with inlet~/outlet~ opened as a toplevel patch + */ + if(toplevel) + ninlets=noutlets=0; + dc->dc_ugenlist = 0; dc->dc_toplevel = toplevel; dc->dc_iosigs = sp; -- cgit v1.2.1