projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb94ac6
)
tests: remove the MALLOC attribute from xappend()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 24 Oct 2017 07:28:10 +0000
(09:28 +0200)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Tue, 24 Oct 2017 07:28:10 +0000
(09:28 +0200)
The internally called realloc() doesn't have this attribute so we
can't propagate it up the stack.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/gpiod-test.c
patch
|
blob
|
history
diff --git
a/tests/gpiod-test.c
b/tests/gpiod-test.c
index 4b2645549b895cb28238ea25f06c19d7232f5484..dcf37280a175ea3ee9de66e742d10513bc3e86bd 100644
(file)
--- 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;