summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-03-28 12:08:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-03-28 12:08:50 +0000
commit218a5b15263140b9a841fe5db5ac0b532a0bf411 (patch)
tree8f62157f2822f98f3341e51111b4cf9c24445c1c /sys/arch/amd64
parent50c2a3b2856b316c5bf031609dd8f449cc8cf04e (diff)
Properly initialize variable instead of just ORing in bits into random garbage.
Shouldn't change the behaviour since only the ORed in bits are checked later, but it makes the code clearer and should shut up the clang static analyser. ok krw@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/bios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c
index 4c95793b1a5..47cd638ebb8 100644
--- a/sys/arch/amd64/amd64/bios.c
+++ b/sys/arch/amd64/amd64/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.18 2009/11/23 17:57:22 mlarkin Exp $ */
+/* $OpenBSD: bios.c,v 1.19 2010/03/28 12:08:49 kettenis Exp $ */
/*
* Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca>
*
@@ -392,7 +392,7 @@ smbios_info(char * str)
* If the uuid value is all 0xff the uuid is present but not
* set, if its all 0 then the uuid isn't present at all.
*/
- uuidf |= SMBIOS_UUID_NPRESENT|SMBIOS_UUID_NSET;
+ uuidf = SMBIOS_UUID_NPRESENT|SMBIOS_UUID_NSET;
for (i = 0; i < sizeof(sys->uuid); i++) {
if (sys->uuid[i] != 0xff)
uuidf &= ~SMBIOS_UUID_NSET;