Skip to content

Commit

Permalink
FULLPIPE: Add sanity check. CID 1063218
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 10, 2013
1 parent fda471e commit 59d989d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/fullpipe/messages.cpp
Expand Up @@ -644,6 +644,9 @@ bool addMessageHandlerByIndex(int (*callback)(ExCommand *), int index, int16 id)
if (curItem)
curItem = curItem->nextItem;

if (!curItem)
return false;

bool res = allocMessageHandler(curItem, id, callback, index);

if (res)
Expand Down

0 comments on commit 59d989d

Please sign in to comment.