From cc1f55f953da77e8eabb695ccd049f680d60764e Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 20 Jul 2008 22:01:59 +0200 Subject: [PATCH] Preallocate a bit less memory for the list of filters --- src/filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filters.c b/src/filters.c index bbbb7f3f..75031ff4 100644 --- a/src/filters.c +++ b/src/filters.c @@ -130,7 +130,7 @@ loadfilters(void) struct dirent *dent; char *dirname = CONFIGDIR "/filters.d"; DIR *dir = opendir(dirname); - int names_len = 1024; + int names_len = 16; char **names = m_malloc(names_len * sizeof(char *)); int i = 0; -- 2.39.5