From 8f30b68871bde8687c7fcff8bac66e2b5765129e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 16 Sep 2009 17:07:01 +0000 Subject: - Add xcalloc() and call it - Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings --- default.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'default.c') diff --git a/default.c b/default.c index 170378e..763db6d 100644 --- a/default.c +++ b/default.c @@ -543,8 +543,7 @@ set_default_suffixes (void) { char *p = default_suffixes; suffix_file->deps = (struct dep *) - multi_glob (parse_file_seq (&p, '\0', sizeof (struct dep), 1), - sizeof (struct dep), 0); + parse_file_seq (&p, sizeof (struct dep), '\0', NULL, 0); define_variable ("SUFFIXES", 8, default_suffixes, o_default, 0); } } -- cgit v1.2.3