diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-08-03 00:06:51 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-08-03 00:06:51 +0100 |
commit | 6862f9c5c94bf8f668227f4bce200006ff2c7d17 (patch) | |
tree | c2167e7f91296f03ab5e27f41084ae72acc44a75 /src/nsgenbind-ast.c | |
parent | dd684cd17564664ca9c51f0b95d0bbd3cbadddf2 (diff) | |
download | nsgenbind-6862f9c5c94bf8f668227f4bce200006ff2c7d17.tar.gz nsgenbind-6862f9c5c94bf8f668227f4bce200006ff2c7d17.tar.bz2 |
When constructing the interface map ensure method type search code does not strcmp null
Diffstat (limited to 'src/nsgenbind-ast.c')
-rw-r--r-- | src/nsgenbind-ast.c | 4 |
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; } |