(RAND_write_file): default to failure.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20091 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-01-31 12:42:50 +00:00
parent 47590366b6
commit 87b4962f43

View File

@@ -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)