From caaed01e90edc41d43334868f14f4f994927b2cd Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 19 May 2008 15:26:54 +1000 Subject: [PATCH] - (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes --- ChangeLog | 3 ++- openbsd-compat/bsd-arc4random.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 567222e96..6907bbd14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ - (djm) [openbsd-compat/bsd-arc4random.c openbsd-compat/openbsd-compat.c] [configure.ac] Implement arc4random_buf(), import implementation of arc4random_uniform() from OpenBSD + - (djm) [openbsd-compat/bsd-arc4random.c] Warning fixes - (djm) OpenBSD CVS Sync - djm@cvs.openbsd.org 2008/04/13 00:22:17 [dh.c sshd.c] @@ -3935,4 +3936,4 @@ OpenServer 6 and add osr5bigcrypt support so when someone migrates passwords between UnixWare and OpenServer they will still work. OK dtucker@ -$Id: ChangeLog,v 1.4920 2008/05/19 05:05:07 djm Exp $ +$Id: ChangeLog,v 1.4921 2008/05/19 05:26:54 djm Exp $ diff --git a/openbsd-compat/bsd-arc4random.c b/openbsd-compat/bsd-arc4random.c index 8bf31e5d3..92e7e7b58 100644 --- a/openbsd-compat/bsd-arc4random.c +++ b/openbsd-compat/bsd-arc4random.c @@ -19,6 +19,7 @@ #include #include +#include #include #include "log.h" @@ -88,7 +89,7 @@ void arc4random_buf(void *_buf, size_t n) { size_t i; - u_int32_t r; + u_int32_t r = 0; char *buf = (char *)_buf; for (i = 0; i < n; i++) {