From b857bafc88a1255f99380d3b32fb5591b90f8b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 13 May 2014 23:41:35 +0200 Subject: [PATCH] WINGs: Called function pointer is null (null dereference) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make sure that we have function to call Signed-off-by: Amadeusz Sławiński --- WINGs/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/tree.c b/WINGs/tree.c index 457ca833..f6646848 100644 --- a/WINGs/tree.c +++ b/WINGs/tree.c @@ -200,7 +200,7 @@ static WMTreeNode *findNodeInTree(WMTreeNode * aNode, WMMatchDataProc * match, v { if (match == NULL && aNode->data == cdata) return aNode; - else if ((*match) (aNode->data, cdata)) + else if (match && (*match) (aNode->data, cdata)) return aNode; if (aNode->leaves && limit != 0) {