提交 87b89b79 编写于 作者: R Richard Levitte

Make sure an error condition is returned if, for some reason, the file

couldn't be opened.
上级 f3f3cc0c
......@@ -163,7 +163,11 @@ int RAND_write_file(const char *file)
out = fopen(file,"wb");
#endif
}
if (out == NULL) goto err;
if (out == NULL)
{
err=1;
goto err;
}
#ifndef NO_CHMOD
chmod(file,0600);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册