[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/33] runstate: Initialize Error * to NULL
From: |
Paolo Bonzini |
Subject: |
[PULL 05/33] runstate: Initialize Error * to NULL |
Date: |
Tue, 15 Jun 2021 15:38:27 +0200 |
From: Peng Liang <liangpeng10@huawei.com>
Based on the description of error_setg(), the local variable err in
qemu_init_subsystems() should be initialized to NULL.
Fixes: efd7ab22fb ("vl: extract qemu_init_subsystems")
Cc: qemu-stable@nongnu.org
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Message-Id: <20210610131729.3906565-1-liangpeng10@huawei.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
softmmu/runstate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/softmmu/runstate.c b/softmmu/runstate.c
index 15640572c0..10d9b7365a 100644
--- a/softmmu/runstate.c
+++ b/softmmu/runstate.c
@@ -747,7 +747,7 @@ static void qemu_run_exit_notifiers(void)
void qemu_init_subsystems(void)
{
- Error *err;
+ Error *err = NULL;
os_set_line_buffering();
--
2.31.1
- [PULL 00/33] Misc patches for 2021-06-15, Paolo Bonzini, 2021/06/15
- [PULL 01/33] vnc: avoid deprecation warnings for SASL on OS X, Paolo Bonzini, 2021/06/15
- [PULL 05/33] runstate: Initialize Error * to NULL,
Paolo Bonzini <=
- [PULL 06/33] esp: only assert INTR_DC interrupt flag if selection fails, Paolo Bonzini, 2021/06/15
- [PULL 02/33] vl: Fix an assert failure in error path, Paolo Bonzini, 2021/06/15
- [PULL 07/33] esp: only set ESP_RSEQ at the start of the select sequence, Paolo Bonzini, 2021/06/15
- [PULL 13/33] esp: fix migration version check in esp_is_version_5(), Paolo Bonzini, 2021/06/15
- [PULL 08/33] esp: allow non-DMA callback in esp_transfer_data() initial transfer, Paolo Bonzini, 2021/06/15
- [PULL 10/33] esp: ensure PDMA write transfers are flushed from the FIFO to the target immediately, Paolo Bonzini, 2021/06/15
- [PULL 16/33] softmmu/physmem: Fix ram_block_discard_range() to handle shared anonymous memory, Paolo Bonzini, 2021/06/15
- [PULL 11/33] esp: revert 75ef849696 "esp: correctly fill bus id with requested lun", Paolo Bonzini, 2021/06/15
- [PULL 04/33] block/scsi: correctly emulate the VPD block limits page, Paolo Bonzini, 2021/06/15
- [PULL 15/33] softmmu/physmem: Mark shared anonymous memory RAM_SHARED, Paolo Bonzini, 2021/06/15