From 87b4962f43fb7edc9926204c481ac7c211211dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 31 Jan 2007 12:42:50 +0000 Subject: [PATCH] (RAND_write_file): default to failure. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20091 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/des/rand.c b/lib/des/rand.c index 1f51c2e40..8d90f1675 100644 --- a/lib/des/rand.c +++ b/lib/des/rand.c @@ -156,7 +156,7 @@ RAND_write_file(const char *filename) { unsigned char buf[128]; size_t len; - int res, fd; + int res = 0, fd; fd = open(filename, O_WRONLY | O_CREAT | O_BINARY, 0600); if (fd < 0)