From a03efb74e50da550ea8f03d75e8eab94744a84b8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 14 Jun 2007 14:56:55 +0000 Subject: checked in patch from tracker 1668080 to fix bang crasher bug svn path=/trunk/externals/OSCx/; revision=7775 --- src/OSCroute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/OSCroute.c') diff --git a/src/OSCroute.c b/src/OSCroute.c index 536d7d6..898aa44 100644 --- a/src/OSCroute.c +++ b/src/OSCroute.c @@ -280,7 +280,7 @@ void OSCroute_list(t_OSCroute *x, t_symbol *s, int argc, t_atom *argv) { if (argc > 0 && argv[0].a_type == A_SYMBOL) { /* Ignore the fact that this is a "list" */ OSCroute_doanything(x, argv[0].a_w.w_symbol, argc-1, argv+1); - } else { + } else if (argc > 0) { // post("* OSC-route: invalid list beginning with a number"); // output on unmatched outlet jdl 20020908 if (argv[0].a_type == A_FLOAT) { @@ -289,6 +289,10 @@ void OSCroute_list(t_OSCroute *x, t_symbol *s, int argc, t_atom *argv) { post("* OSC-route: unrecognized atom type!"); } } + else { + // output a bang on the rejected outlet if no arguments + outlet_bang(x->x_outlets[x->x_num]); + } // ExitCallback(); } -- cgit v1.2.1