1
0
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:
witekfl 2012-03-04 18:20:48 +01:00
parent e86ec567f2
commit 12803e4075

View File

@ -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. */