From f0b92a13669c30e98f258f3c61c5ee56ddffa771 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 19 May 2012 13:05:49 +0200 Subject: [PATCH] eloop: fix not returning new counter object We forgot to actually store the pointer to the new counter object in the \out variable. Fix this now. Signed-off-by: David Herrmann --- src/eloop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eloop.c b/src/eloop.c index 7b39c92..4d90261 100644 --- a/src/eloop.c +++ b/src/eloop.c @@ -1143,6 +1143,7 @@ int ev_eloop_new_counter(struct ev_eloop *eloop, struct ev_counter **out, } ev_counter_unref(cnt); + *out = cnt; return 0; }