aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);