[Github-comments] [geany/geany] Update doc->priv->tag_tree_dirty only if doc is set (PR #3080)

Enrico Tröger notifications at xxxxx
Sun Jan 2 18:08:14 UTC 2022


This prevents a potential crash if `sidebar_update_tag_list()` is called with update=true and document=NULL.

Found this by accident while testing the tag tree filter PR.
Currently, this is no problem as `sidebar_update_tag_list()` is not called with update=true and document=NULL but just in case it might happen.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3080

-- Commit Summary --

  * Update doc->priv->tag_tree_dirty only if doc is set

-- File Changes --

    M src/sidebar.c (2)

-- Patch Links --

https://github.com/geany/geany/pull/3080.patch
https://github.com/geany/geany/pull/3080.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3080
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3080 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220102/8a864e4e/attachment.htm>


More information about the Github-comments mailing list