diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-31 11:22:27 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-31 11:22:27 +0000 |
commit | 9e993c95b20db3cb6709d07b37de7cb7a5b4b70a (patch) | |
tree | 22668725c0e71977db81dd801a55bfc50d25ef37 /src | |
parent | a6af536be0d264d9e7d0e26fd07cd822d1c0331a (diff) | |
download | s6-9e993c95b20db3cb6709d07b37de7cb7a5b4b70a.tar.xz |
Actually fix the return value of ftrigr_update() (thanks jjk)
Diffstat (limited to 'src')
-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) ; } |