diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-28 12:08:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-28 12:08:50 +0000 |
commit | 218a5b15263140b9a841fe5db5ac0b532a0bf411 (patch) | |
tree | 8f62157f2822f98f3341e51111b4cf9c24445c1c /sys/arch/i386 | |
parent | 50c2a3b2856b316c5bf031609dd8f449cc8cf04e (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/i386')
-rw-r--r-- | sys/arch/i386/i386/bios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c index fce188e9afd..9e66ba4ffc8 100644 --- a/sys/arch/i386/i386/bios.c +++ b/sys/arch/i386/i386/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.86 2009/11/23 17:57:22 mlarkin Exp $ */ +/* $OpenBSD: bios.c,v 1.87 2010/03/28 12:08:49 kettenis Exp $ */ /* * Copyright (c) 1997-2001 Michael Shalayeff @@ -970,7 +970,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; |