Signed-off-by: Daniel Lezcano daniel.lezcano@linaro.org --- tree.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tree.c b/tree.c index f95610a..aefe0fe 100644 --- a/tree.c +++ b/tree.c @@ -304,6 +304,9 @@ static int tree_finds_cb(struct tree *tree, void *data) { struct struct_find *sf = data;
+ if (!strlen(sf->name)) + return 0; + if (strncmp(sf->name, tree->name, strlen(sf->name))) return 0;