mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
glib/gvariant.c: Fix NULL pointer check in is_valid_heap_iter
https://bugzilla.gnome.org/show_bug.cgi?id=769245
This commit is contained in:
parent
bc40c7a05c
commit
1be86b3d18
@ -2916,8 +2916,8 @@ struct heap_iter
|
|||||||
#define GVHI_MAGIC ((gsize) 1450270775u)
|
#define GVHI_MAGIC ((gsize) 1450270775u)
|
||||||
#define is_valid_iter(i) (i != NULL && \
|
#define is_valid_iter(i) (i != NULL && \
|
||||||
GVSI(i)->magic == GVSI_MAGIC)
|
GVSI(i)->magic == GVSI_MAGIC)
|
||||||
#define is_valid_heap_iter(i) (GVHI(i)->magic == GVHI_MAGIC && \
|
#define is_valid_heap_iter(i) (is_valid_iter(i) && \
|
||||||
is_valid_iter(i))
|
GGVHI(i)->magic == GVHI_MAGIC)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_variant_iter_new:
|
* g_variant_iter_new:
|
||||||
|
Loading…
Reference in New Issue
Block a user