Skip to content
Snippets Groups Projects

xdgmimecache: Add assertion to silence static analysis false positive

Merged Philip Withnall requested to merge pwithnall/xdgmime:scan-build-help into master

After a lot of loop unwinding, during which I think it might have lost its knowledge that cache->buffer != NULL (from a prior check on line 739), scan-build seems to think that there can be a NULL pointer dereference of cache->buffer within cache_magic_compare_to_data(). There can’t be. Add an assertion to try and help the analyser.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading