Fix an uninitialized variable from the previous commit.
This commit is contained in:
parent
938608cb45
commit
4e4ce82e0a
@ -231,7 +231,8 @@ cpu_startup(dummy)
|
||||
if (sysenv != NULL) {
|
||||
memsize = (uintmax_t)strtoul(sysenv, (char **)NULL, 10);
|
||||
freeenv(sysenv);
|
||||
}
|
||||
} else
|
||||
memsize = 0;
|
||||
if (memsize > 0)
|
||||
printf("real memory = %ju (%ju MB)\n", memsize << 10,
|
||||
memsize >> 10);
|
||||
|
@ -278,7 +278,8 @@ cpu_startup(dummy)
|
||||
if (sysenv != NULL) {
|
||||
memsize = (uintmax_t)strtoul(sysenv, (char **)NULL, 10);
|
||||
freeenv(sysenv);
|
||||
}
|
||||
} else
|
||||
memsize = 0;
|
||||
if (memsize > 0)
|
||||
printf("real memory = %ju (%ju MB)\n", memsize << 10,
|
||||
memsize >> 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user