Skip to contentSkip to conversation

fdformat: fix uninitialized variable

PATCH Applied Francesco Cosoleto 2 participants 2 messages Sep 10, 2011 – Sep 12, 2011 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Spotted by EKOPath compiler.

---
 disk-utils/fdformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
disk-utils/fdformat.c +1 -1
index 670242f..29782ec 100644
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
 {
 	int ch;
 	int ctrl;
-	int verify;
+	int verify = 1;
 	struct stat st;
 
 	static const struct option longopts[] = {
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Francesco Cosoleto
 disk-utils/fdformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com