[Github-comments] [geany] Store "equal" tags into binary trees instead of lists in Symbol tree (#797)
Colomban Wendling
notifications at xxxxx
Tue Dec 22 17:12:54 UTC 2015
>
> + g_tree_search(tree, (GCompareFunc)tree_search_func, &user_data);
> + list = g_tree_lookup(tree, GINT_TO_POINTER(user_data.found_line));
should this rather be guarded to whether search succeeded? `if (g_tree_search(tree, ...)) { list = lookup() ... }`
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/797/files#r48275077
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151222/5a17e0e6/attachment.html>
More information about the Github-comments
mailing list