mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 10:38:08 +01:00
3e68debb13
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 765), 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. Upstreamed as https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/38. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #1767