mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Check if hb is NULL.
This commit is contained in:
parent
e86ec567f2
commit
12803e4075
@ -111,6 +111,7 @@ add_heartbeat(struct ecmascript_interpreter *interpreter)
|
||||
void
|
||||
done_heartbeat(struct heartbeat *hb)
|
||||
{
|
||||
if (!hb) return; /* add_heartbeat returned NULL */
|
||||
assert(hb->interpreter);
|
||||
|
||||
/* Stop the heartbeat timer if this heartbeat is the only one. */
|
||||
|
Loading…
Reference in New Issue
Block a user