Skip to content

xdgmimecache: Add assertion to silence static analysis false positive

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