mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix possibibly unitialized value
This commit is contained in:
parent
2ded798e86
commit
cd4f5d5c61
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
|
||||
int tsc_init(struct tsc *t)
|
||||
{
|
||||
uint32_t eax, ebx, ecx, edx;
|
||||
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
|
||||
|
||||
/** Check if TSC is supported */
|
||||
__get_cpuid(0x1, &eax, &ebx, &ecx, &edx);
|
||||
|
|
|
@ -75,7 +75,7 @@ void print_version()
|
|||
ssize_t read_random(char *buf, size_t len)
|
||||
{
|
||||
int fd;
|
||||
ssize_t bytes;
|
||||
ssize_t bytes = -1;
|
||||
|
||||
fd = open("/dev/urandom", O_RDONLY);
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue