aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_ugen.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-09 16:41:04 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-09 16:41:04 +0000
commite1fc51c3a1d944193032d8bb1d95741d090b6d3b (patch)
tree7a2121c73a5acb69a080e73ad8e3b50cc3670616 /pd/src/d_ugen.c
parent21c068f1916330e90f814bed461fe0821d1665ec (diff)
checked in pd-0.43-1test4.src.tar.gz
svn path=/trunk/; revision=15558
Diffstat (limited to 'pd/src/d_ugen.c')
-rw-r--r--pd/src/d_ugen.c6
1 files changed, 6 insertions, 0 deletions
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;