Fix an uninitialized variable from the previous commit.

This commit is contained in:
Jung-uk Kim 2009-03-31 21:14:05 +00:00
parent 938608cb45
commit 4e4ce82e0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190600
2 changed files with 4 additions and 2 deletions

View File

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

View File

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