diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-08-28 18:00:09 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2015-08-28 18:00:09 +0000 |
commit | 850e48d21da09856373545f59c6edd0f932ed166 (patch) | |
tree | e43c25c22d2e923ad36080f5d4bf511c89d83748 /src | |
parent | ba559cdf2df1db5081c258707820bf80409dfdf1 (diff) |
handle NULL selectors
svn path=/trunk/externals/zexy/; revision=17539
Diffstat (limited to 'src')
-rw-r--r-- | src/rawprint.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rawprint.c b/src/rawprint.c index 68b4244..e36495b 100644 --- a/src/rawprint.c +++ b/src/rawprint.c @@ -43,7 +43,12 @@ static void rawprint_any(t_rawprint *x, t_symbol*s, int argc, t_atom*argv) if(x->label) { startpost("%s: ", x->label->s_name); } - startpost("\"%s\"", s->s_name); + + if(s) + startpost("\"%s\"", s->s_name); + else // this shouldn't happen, but sometimes does... + startpost("NULL"); + while(argc--) { switch(argv->a_type) { case A_FLOAT: |