Skip to content

Commit 1bd60ee

Browse files
author
Nima Talebi
committed
Fixed minor bug which prevented debug builds
1 parent 0de97ae commit 1bd60ee

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/dmidecode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,7 +3960,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, struct dmi_header * h, u16 ver)
39603960
}
39613961

39623962
sub_n = xmlNewChild(sect_n, NULL, (xmlChar *) "Cores", NULL);
3963-
assert( cores_n != NULL );
3963+
assert( sub_n != NULL );
39643964

39653965
if(data[0x23] != 0) {
39663966
dmixml_AddTextChild(sub_n, "CoreCount", "%i", data[0x23]);
@@ -3984,7 +3984,7 @@ xmlNode *dmi_decode(xmlNode *prnt_n, struct dmi_header * h, u16 ver)
39843984
}
39853985

39863986
sub_n = xmlNewChild(sect_n, NULL, (xmlChar *) "ErrorCorrection", NULL);
3987-
assert( errc_n != NULL );
3987+
assert( sub_n != NULL );
39883988

39893989
dmi_memory_controller_ed_method(sub_n, data[0x04]);
39903990
dmi_memory_controller_ec_capabilities(sub_n, "Capabilities", data[0x05]);

src/dmidecodemodule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include "dmihelper.h"
2323

24+
xmlNode *dmidecode_set_version(void);
25+
2426
//extern void dmi_decode(struct dmi_header *h, u16 ver, PyObject* pydata);
2527
extern void dmi_dump(xmlNode *node, struct dmi_header *h);
2628
extern xmlNode *dmi_decode(xmlNode *parent_n, struct dmi_header * h, u16 ver);

0 commit comments

Comments
 (0)