aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-06-14 14:56:55 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-06-14 14:56:55 +0000
commita03efb74e50da550ea8f03d75e8eab94744a84b8 (patch)
tree0ffad824272e670684c00076482cba064989a5bc
parent225141bb224fe7f487a89406792d8a1da3a89b6b (diff)
checked in patch from tracker 1668080 to fix bang crasher bug
svn path=/trunk/externals/OSCx/; revision=7775
-rw-r--r--src/OSCroute.c6
1 files changed, 5 insertions, 1 deletions
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();
}