mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix a panic in crypto hash calculations due to uninitialized variable.
@ 2012-06-07 13:04 Krzysztof Halasa
  0 siblings, 0 replies; only message in thread
From: Krzysztof Halasa @ 2012-06-07 13:04 UTC (permalink / raw)
  To: barebox

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>

diff --git a/common/digest.c b/common/digest.c
index a327395..c2c431c 100644
--- a/common/digest.c
+++ b/common/digest.c
@@ -86,7 +86,7 @@ int digest_file_window(struct digest *d, char *filename,
 	ulong len = 0;
 	int fd, now, ret = 0;
 	unsigned char *buf;
-	int flags;
+	int flags = 0;
 
 	d->init(d);
 

-- 
Krzysztof Halasa

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-07 13:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-07 13:04 [PATCH] Fix a panic in crypto hash calculations due to uninitialized variable Krzysztof Halasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox