Commit d391a4a0 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix possibibly unitialized value

parent 1ccf3365
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment