David Baron fix for valgrind report of UMR r=wtchang sr=Nelson
git-svn-id: svn://10.0.0.236/trunk@193475 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
acd7c2ba11
commit
d7ec54429b
@ -959,6 +959,9 @@ size_t RNG_FileUpdate(const char *fileName, size_t limit)
|
||||
unsigned char buffer[BUFSIZ];
|
||||
static size_t totalFileBytes = 0;
|
||||
|
||||
/* suppress valgrind warnings due to holes in struct stat */
|
||||
memset(&stat_buf, 0, sizeof(stat_buf));
|
||||
|
||||
if (stat((char *)fileName, &stat_buf) < 0)
|
||||
return fileBytes;
|
||||
RNG_RandomUpdate(&stat_buf, sizeof(stat_buf));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user