mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +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 is_valid_iter(i) (i != NULL && \
|
||||
GVSI(i)->magic == GVSI_MAGIC)
|
||||
#define is_valid_heap_iter(i) (GVHI(i)->magic == GVHI_MAGIC && \
|
||||
is_valid_iter(i))
|
||||
#define is_valid_heap_iter(i) (is_valid_iter(i) && \
|
||||
GGVHI(i)->magic == GVHI_MAGIC)
|
||||
|
||||
/**
|
||||
* g_variant_iter_new:
|
||||
|
Loading…
Reference in New Issue
Block a user