From 7179f51176e1f3af53694e09d7ea2ca602403cf1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 10 Dec 2014 02:21:00 +0100 Subject: no more direct allocations, always use macros, unless using alloca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/process-includes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-kbdc/process-includes.c') diff --git a/src/mds-kbdc/process-includes.c b/src/mds-kbdc/process-includes.c index 2faaf3f..cf07f56 100644 --- a/src/mds-kbdc/process-includes.c +++ b/src/mds-kbdc/process-includes.c @@ -169,7 +169,7 @@ static int process_include(mds_kbdc_tree_include_t* restrict tree) mds_kbdc_parsed_initialise(&subresult); /* Get dirname of current file. */ - fail_if ((dirname = strdup(result->pathname)) == NULL); + fail_if (xstrdup(dirname, result->pathname)); *(strrchr(dirname, '/')) = '\0'; /* Get the current working directory. */ -- cgit v1.2.3-70-g09d2