From e8dc03c8033ea8eb3e030e9c5d9e92ef6d147354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 21 Jun 2005 13:23:11 +0000 Subject: default to 128 maxentries if 0 or a negative number is given svn path=/trunk/externals/zexy/; revision=3228 --- src/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index 84786fe..b219883 100644 --- a/src/index.c +++ b/src/index.c @@ -301,7 +301,7 @@ static void *index_new(t_symbol *s, int argc, t_atom *argv) if (argc) automod = (int)atom_getfloat(argv++); } - if (!maxentries) maxentries=128; + if (maxentries<1) maxentries=128; buf = (t_symbol **)getbytes(sizeof(t_symbol *) * maxentries); -- cgit v1.2.1