]> err.no Git - dpkg/commitdiff
Preallocate a bit less memory for the list of filters
authorTollef Fog Heen <tfheen@err.no>
Sun, 20 Jul 2008 20:01:59 +0000 (22:01 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 20 Jul 2008 20:01:59 +0000 (22:01 +0200)
src/filters.c

index bbbb7f3fcc040c2ddaa43a0c640d1e3004d76452..75031ff4f3fc9de2d530d092ca5c96784de8e609 100644 (file)
@@ -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;