mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-06 01:16:17 +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 |
||
---|---|---|
.. | ||
.gitignore | ||
meson.build | ||
xdgmime.c | ||
xdgmime.h | ||
xdgmimealias.c | ||
xdgmimealias.h | ||
xdgmimecache.c | ||
xdgmimecache.h | ||
xdgmimeglob.c | ||
xdgmimeglob.h | ||
xdgmimeicon.c | ||
xdgmimeicon.h | ||
xdgmimeint.c | ||
xdgmimeint.h | ||
xdgmimemagic.c | ||
xdgmimemagic.h | ||
xdgmimeparent.c | ||
xdgmimeparent.h |