mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-01 03:36:26 -04: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
|
void
|
||||||
done_heartbeat(struct heartbeat *hb)
|
done_heartbeat(struct heartbeat *hb)
|
||||||
{
|
{
|
||||||
|
if (!hb) return; /* add_heartbeat returned NULL */
|
||||||
assert(hb->interpreter);
|
assert(hb->interpreter);
|
||||||
|
|
||||||
/* Stop the heartbeat timer if this heartbeat is the only one. */
|
/* Stop the heartbeat timer if this heartbeat is the only one. */
|
||||||
|
Loading…
Reference in New Issue
Block a user