diff options
-rw-r--r-- | src/list2symbol.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/list2symbol.c b/src/list2symbol.c index f1d318a..cbb2449 100644 --- a/src/list2symbol.c +++ b/src/list2symbol.c @@ -124,7 +124,9 @@ static void list2symbol_anything(t_list2symbol *x, t_symbol *s, int argc, t_atom x->s =s; x->ac=argc; - x->ap=(t_atom*)getbytes(x->ac*sizeof(t_atom)); + if(x->ac){ + x->ap=(t_atom*)getbytes(x->ac*sizeof(t_atom)); + } if(x->ap){ t_atom*ap=x->ap; while(argc--){ |