From edfe50ce405ca41f83828a58d15278b1c9a470c7 Mon Sep 17 00:00:00 2001 From: Krzysztof Halasa Date: Thu, 7 Jun 2012 15:04:07 +0200 Subject: Fix a panic in crypto hash calculations due to uninitialized variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Krzysztof HaƂasa Signed-off-by: Sascha Hauer --- common/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/digest.c b/common/digest.c index a327395804..c2c431c062 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); -- cgit v1.2.3