mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +00:00
uev_timer_init() crashes when called without a watcher:
uev_timer_init(ctx, NULL, cb, NULL, 100, 0);
The cleanup after a failed setup resets the descriptor in the watcher
without checking that there is one.
Check the arguments first, like the other watcher types do.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>