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 | |
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
-rw-r--r-- | src/dmidecode.c | 4 | ||||
-rw-r--r-- | src/dmidecodemodule.h | 2 |
2 files changed, 4 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]); diff --git a/src/dmidecodemodule.h b/src/dmidecodemodule.h index 2ebc5d0..34a2bad 100644 --- a/src/dmidecodemodule.h +++ b/src/dmidecodemodule.h @@ -21,6 +21,8 @@ #include "dmihelper.h" +xmlNode *dmidecode_set_version(void); + //extern void dmi_decode(struct dmi_header *h, u16 ver, PyObject* pydata); extern void dmi_dump(xmlNode *node, struct dmi_header *h); extern xmlNode *dmi_decode(xmlNode *parent_n, struct dmi_header * h, u16 ver); |