Signed-off-by: Daniel Lezcano <daniel.lezc...@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;
 
-- 
1.7.1


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to