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:
parent
c744c0934d
commit
05a1f9ef37
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue