[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] dump: Set dump info function pointers to NULL
From: |
Janosch Frank |
Subject: |
[PATCH 1/4] dump: Set dump info function pointers to NULL |
Date: |
Tue, 7 Nov 2023 14:20:45 +0000 |
Better to not rely on the struct zeroing since NULL is not necessarily
0.
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
dump/dump.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dump/dump.c b/dump/dump.c
index d355ada62e..1d38274925 100644
--- a/dump/dump.c
+++ b/dump/dump.c
@@ -1706,6 +1706,9 @@ static void dump_state_prepare(DumpState *s)
{
/* zero the struct, setting status to active */
*s = (DumpState) { .status = DUMP_STATUS_ACTIVE };
+ s->dump_info.arch_sections_add_fn = NULL;
+ s->dump_info.arch_sections_write_hdr_fn = NULL;
+ s->dump_info.arch_sections_write_fn = NULL;
}
bool qemu_system_dump_in_progress(void)
--
2.34.1