aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2009-03-31 21:14:05 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2009-03-31 21:14:05 +0000
commit4e4ce82e0a05883c8ec7b6a4b56a684062863fe0 (patch)
treef00434218b1e4d313175b7f02ced3e432e1eb02c /sys/amd64
parent938608cb45cbefa2decc75cd93d919f4df4cf766 (diff)
downloadsrc-4e4ce82e0a05883c8ec7b6a4b56a684062863fe0.tar.gz
src-4e4ce82e0a05883c8ec7b6a4b56a684062863fe0.zip
Fix an uninitialized variable from the previous commit.
Notes
Notes: svn path=/head/; revision=190600
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index ad46a62a0835..f34e8159934d 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -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);