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:
parent
fb4b087bf2
commit
f0b92a1366
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user