guestfs-tools/Initialise-bar-fp-as-NULL.patch

21 lines
676 B
Diff

Subject: Initialise bar->fp as NULL
From: Ben Brown ben.brown@softiron.com Thu Mar 28 12:35:28 2024 +0000
Date: Thu Mar 28 12:53:52 2024 +0000:
Git: 0330ebe40cb645df311bab25888c5ca6cc179efe
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2272045
diff --git a/common/progress/progress.c b/common/progress/progress.c
index e4b3066..5848abd 100644
--- a/common/progress/progress.c
+++ b/common/progress/progress.c
@@ -123,6 +123,7 @@ progress_bar_init (unsigned flags)
bar->machine_readable = 1;
bar->utf8_mode = 0;
bar->have_terminfo = 0;
+ bar->fp = NULL;
} else {
bar->machine_readable = 0;