summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nsgenbind-ast.c4
1 files changed, 3 insertions, 1 deletions
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;
}