Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in tree_traverse #1

Closed
ashoka-versa opened this issue Apr 30, 2013 · 1 comment
Closed

Bug in tree_traverse #1

ashoka-versa opened this issue Apr 30, 2013 · 1 comment

Comments

@ashoka-versa
Copy link
Contributor

The 'tree' is passed as argument to tree_node_min() instead
of tree->node. Please apply the following patch.

--- a/usr/lib/libdict/src/tree_common.c
+++ b/usr/lib/libdict/src/tree_common.c
@@ -179,7 +179,7 @@ tree_traverse(void* Tree, dict_visit_func visit)

 size_t count = 0;
 if (tree->root) {
  •   tree_node\* node = tree_node_min(tree);
    
  •   tree_node\* node = tree_node_min(tree->root);
    

Thanks,
Ashoka

@fmela
Copy link
Owner

fmela commented May 4, 2013

Thank you for submitting a fix for this. I have merged the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants