From 9e993c95b20db3cb6709d07b37de7cb7a5b4b70a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 31 Jan 2017 11:22:27 +0000 Subject: Actually fix the return value of ftrigr_update() (thanks jjk) --- src/libs6/ftrigr_update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libs6/ftrigr_update.c b/src/libs6/ftrigr_update.c index 132449b..52f79b9 100644 --- a/src/libs6/ftrigr_update.c +++ b/src/libs6/ftrigr_update.c @@ -58,6 +58,8 @@ static int msghandler (unixmessage_t const *m, void *context) int ftrigr_update (ftrigr_t *a) { + int r ; genalloc_setlen(uint16_t, &a->list, 0) ; - return skaclient_update(&a->connection, &msghandler, a) ; + r = skaclient_update(&a->connection, &msghandler, a) ; + return r < 0 ? r : (int)genalloc_len(uint16_t, &a->list) ; } -- cgit v1.2.3