diff options
author | Nima Talebi <nima@autonomy.net.au> | 2009-05-23 13:14:42 +1000 |
---|---|---|
committer | Nima Talebi <nima@autonomy.net.au> | 2009-05-23 13:14:42 +1000 |
commit | 1bd60ee4c38615f2f1aac873d95cde0e6fae7b1e (patch) | |
tree | a1687a6550c9db8e8ab31f9995da16ca17022203 /src/dmidecode.c | |
parent | 0de97ae9ab884efb0bd24bb0ea1f5770cc74ff89 (diff) | |
download | python-dmidecode-1bd60ee4c38615f2f1aac873d95cde0e6fae7b1e.tar.gz python-dmidecode-1bd60ee4c38615f2f1aac873d95cde0e6fae7b1e.tar.xz python-dmidecode-1bd60ee4c38615f2f1aac873d95cde0e6fae7b1e.zip |
Fixed minor bug which prevented debug builds
Diffstat (limited to 'src/dmidecode.c')
-rw-r--r-- | src/dmidecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dmidecode.c b/src/dmidecode.c index 1f4dbd9..9a0baa8 100644 --- a/src/dmidecode.c +++ b/src/dmidecode.c @@ -3960,7 +3960,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, struct dmi_header * h, u16 ver) } sub_n = xmlNewChild(sect_n, NULL, (xmlChar *) "Cores", NULL); - assert( cores_n != NULL ); + assert( sub_n != NULL ); if(data[0x23] != 0) { dmixml_AddTextChild(sub_n, "CoreCount", "%i", data[0x23]); @@ -3984,7 +3984,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, struct dmi_header * h, u16 ver) } sub_n = xmlNewChild(sect_n, NULL, (xmlChar *) "ErrorCorrection", NULL); - assert( errc_n != NULL ); + assert( sub_n != NULL ); dmi_memory_controller_ed_method(sub_n, data[0x04]); dmi_memory_controller_ec_capabilities(sub_n, "Capabilities", data[0x05]); |