1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

WINGs: Called function pointer is null (null dereference)

make sure that we have function to call

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2014-05-13 23:41:35 +02:00
committed by Carlos R. Mafra
parent fb4cd10519
commit b857bafc88

View File

@@ -200,7 +200,7 @@ static WMTreeNode *findNodeInTree(WMTreeNode * aNode, WMMatchDataProc * match, v
{ {
if (match == NULL && aNode->data == cdata) if (match == NULL && aNode->data == cdata)
return aNode; return aNode;
else if ((*match) (aNode->data, cdata)) else if (match && (*match) (aNode->data, cdata))
return aNode; return aNode;
if (aNode->leaves && limit != 0) { if (aNode->leaves && limit != 0) {