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:
glen.beasley%sun.com 2006-04-04 01:05:53 +00:00
parent acd7c2ba11
commit d7ec54429b

View File

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