]> git.ipfire.org Git - thirdparty/libvirt.git/commit
sysinfo: fix parsing regression
authorEric Blake <eblake@redhat.com>
Tue, 28 Jun 2011 17:56:08 +0000 (11:56 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 28 Jun 2011 19:49:51 +0000 (13:49 -0600)
commitc8eaba64913f9d752e0b275b4d1fc09fe82cae8e
tree42f0c7d0a44ad49030efc686a1b2a3fac92e0940
parent8f3389217150a494b846707f805b574ad1fefecd
sysinfo: fix parsing regression

Detected by gcc -O2, introduced in commit 532ce9c2.  If dmidecode
outputs a field unrecognized by the parsers, then the code would
dereference an uninitialized eol variable.

* src/util/sysinfo.c (virSysinfoParseBIOS)
(virSysinfoParseSystem, virSysinfoParseProcessor)
(virSysinfoParseMemory): Avoid uninitialized variable.
src/util/sysinfo.c