From 6862f9c5c94bf8f668227f4bce200006ff2c7d17 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 3 Aug 2015 00:06:51 +0100 Subject: When constructing the interface map ensure method type search code does not strcmp null --- src/nsgenbind-ast.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nsgenbind-ast.c b/src/nsgenbind-ast.c index 28326aa..4f0654a 100644 --- a/src/nsgenbind-ast.c +++ b/src/nsgenbind-ast.c @@ -339,7 +339,9 @@ genbind_node_find_method_ident(struct genbind_node *node, genbind_node_getnode(res_node), NULL, GENBIND_NODE_TYPE_IDENT)); - if ((method_ident != NULL) && + + if ((ident != NULL) && + (method_ident != NULL) && strcmp(ident, method_ident) == 0) { break; } -- cgit v1.2.3