From: Tollef Fog Heen Date: Sun, 20 Jul 2008 20:01:59 +0000 (+0200) Subject: Preallocate a bit less memory for the list of filters X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc1f55f953da77e8eabb695ccd049f680d60764e;p=dpkg Preallocate a bit less memory for the list of filters --- 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;