1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

coverity: check timer opaque before dereferencing

Actually we always set this correctly using the uv_timer_start() wrapper,
so this is a false positive.  But satisfy Coverity nonetheless.
This commit is contained in:
Chunho Lee 2021-06-30 06:50:08 +01:00 committed by Andy Green
parent c744c0934d
commit 05a1f9ef37

View file

@ -91,6 +91,7 @@ void esp32_uvtimer_cb(TimerHandle_t t)
{
struct timer_mapping *p = pvTimerGetTimerID(t);
p->cb(p->t);
if (p)
p->cb(p->t);
}