From 030f17e6572d4277c05d2eefffa091cd69ab43cb Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 24 Oct 2017 09:28:10 +0200 Subject: [PATCH] tests: remove the MALLOC attribute from xappend() The internally called realloc() doesn't have this attribute so we can't propagate it up the stack. Signed-off-by: Bartosz Golaszewski --- tests/gpiod-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c index 4b26455..dcf3728 100644 --- a/tests/gpiod-test.c +++ b/tests/gpiod-test.c @@ -257,7 +257,7 @@ static MALLOC char * xstrdup(const char *str) return ret; } -static MALLOC TEST_PRINTF(2, 3) char * xappend(char *str, const char *fmt, ...) +static TEST_PRINTF(2, 3) char * xappend(char *str, const char *fmt, ...) { char *new, *ret; va_list va; -- 2.30.2