diff options
author | Krzysztof Halasa <khc@pm.waw.pl> | 2012-06-07 15:04:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-07 19:39:09 +0200 |
commit | edfe50ce405ca41f83828a58d15278b1c9a470c7 (patch) | |
tree | 0634a9a2e5d9a89d2a2be4522ef1277504364343 /common | |
parent | 76049e05fa93b852c0e33227cc795134421a3546 (diff) | |
download | barebox-edfe50ce405ca41f83828a58d15278b1c9a470c7.tar.gz barebox-edfe50ce405ca41f83828a58d15278b1c9a470c7.tar.xz |
Fix a panic in crypto hash calculations due to uninitialized variable.
Signed-off-by: Krzysztof HaĆasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |