qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qobject: Fix maybe uninitialized in qdict_array_split
@ 2021-05-18 13:06 Janosch Frank
  2021-05-31  9:21 ` Janosch Frank
  0 siblings, 1 reply; 4+ messages in thread
From: Janosch Frank @ 2021-05-18 13:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, cohuck, borntraeger

Lets make the compiler happy.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 qobject/block-qdict.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c
index 1487cc5dd8..b26524429c 100644
--- a/qobject/block-qdict.c
+++ b/qobject/block-qdict.c
@@ -224,7 +224,7 @@ void qdict_array_split(QDict *src, QList **dst)
     for (i = 0; i < UINT_MAX; i++) {
         QObject *subqobj;
         bool is_subqdict;
-        QDict *subqdict;
+        QDict *subqdict = NULL;
         char indexstr[32], prefix[32];
         size_t snprintf_ret;
 
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-31 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-18 13:06 [PATCH] qobject: Fix maybe uninitialized in qdict_array_split Janosch Frank
2021-05-31  9:21 ` Janosch Frank
2021-05-31  9:44   ` Philippe Mathieu-Daudé
2021-05-31 10:13     ` Janosch Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).