diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-03-06 23:08:35 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-03-06 23:24:13 +0100 |
commit | 0e859748a4e00cfad3bc50e386a06622066ee994 (patch) | |
tree | 80cf6cef4a3530876156c02a1685342736853f15 /lib/math.c | |
parent | 05bd7edd7a101aa09a54371aa34bc22646b75bee (diff) |
uloop: clear errno before integer conversion attempts
In some cases, errno contains stale values from prior function invocations
which might lead to random failures in uc_uloop_run(), uc_uloop_timer_set()
and uc_uloop_timer().
Solve this issue by explicitly initializing errno to 0.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/math.c')
0 files changed, 0 insertions, 0 deletions