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-server/interceptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds-server/interceptors.c') diff --git a/src/mds-server/interceptors.c b/src/mds-server/interceptors.c index 8a24e33..c1dafec 100644 --- a/src/mds-server/interceptors.c +++ b/src/mds-server/interceptors.c @@ -140,7 +140,7 @@ void add_intercept_condition(client_t* client, char* condition, int64_t priority else { /* Duplicate condition string. */ - fail_if ((condition = strdup(condition)) == NULL); + fail_if (xstrdup(condition, condition)); /* Grow the interception condition list. */ fail_if (xrealloc(conds, n + 1, interception_condition_t)); -- cgit v1.2.3-70-g09d2