diff options
Diffstat (limited to 'src/libs6')
-rw-r--r-- | src/libs6/ftrigr_update.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) ; } |