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 <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-05-19 13:05:49 +02:00
parent fb4b087bf2
commit f0b92a1366

View File

@ -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;
}