aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-21 13:23:11 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-21 13:23:11 +0000
commite8dc03c8033ea8eb3e030e9c5d9e92ef6d147354 (patch)
tree6bb18b53273db1dfb4b69625e9e8fa9aaab5d1b5
parent4ec7f0b7d5385e591e7764067188990ba0cbedcc (diff)
default to 128 maxentries if 0 or a negative number is given
svn path=/trunk/externals/zexy/; revision=3228
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
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);