diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-07-18 23:55:11 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-07-18 23:55:11 +0000 |
commit | 2e273d697e4aeafa0c4165c0aee1f80b9fc8320a (patch) | |
tree | d5e61622b9d292d361a500326da2f4b4242fe591 /src | |
parent | a7ef649c69a6f5d2abef93f89ac38d38fc074404 (diff) |
probably fixed a bug with freeing 0-allocated memory
svn path=/trunk/externals/zexy/; revision=11873
Diffstat (limited to 'src')
-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--){ |