mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-16 22:43:58 +03:00
Squash warning
svn path=/trunk/netsurf/; revision=6904
This commit is contained in:
parent
4a8b0ca787
commit
5823b09a1c
@ -131,8 +131,8 @@ struct talloc_chunk {
|
||||
/* panic if we get a bad magic value */
|
||||
static inline struct talloc_chunk *talloc_chunk_from_ptr(const void *ptr)
|
||||
{
|
||||
const char *pp = (const char *)ptr;
|
||||
struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp - TC_HDR_SIZE);
|
||||
const void *pp = ((const char *)ptr) - TC_HDR_SIZE;
|
||||
struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp);
|
||||
if (unlikely((tc->flags & (TALLOC_FLAG_FREE | ~0xF)) != TALLOC_MAGIC)) {
|
||||
if (tc->flags & TALLOC_FLAG_FREE) {
|
||||
TALLOC_ABORT("Bad talloc magic value - double free");
|
||||
|
Loading…
x
Reference in New Issue
Block a user