diff options
author | David Sommerseth <davids@redhat.com> | 2009-04-24 17:09:41 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-04-29 11:22:12 +0200 |
commit | 75aaf67d43cf4a28fe8d3e07111dab75a0c4396d (patch) | |
tree | 3e78ba5e79d664099dd2dc7335ec9ac98ccf37f1 /src | |
parent | 0af6d685a83d7c060de52717859e00104bc7c4b8 (diff) | |
download | python-dmidecode-75aaf67d43cf4a28fe8d3e07111dab75a0c4396d.tar.gz python-dmidecode-75aaf67d43cf4a28fe8d3e07111dab75a0c4396d.tar.xz python-dmidecode-75aaf67d43cf4a28fe8d3e07111dab75a0c4396d.zip |
Don't return NULL in dmixml_GetContent(...)
Diffstat (limited to 'src')
-rw-r--r-- | src/dmixml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmixml.c b/src/dmixml.c index 1fe862d..6fcf24f 100644 --- a/src/dmixml.c +++ b/src/dmixml.c @@ -201,7 +201,7 @@ xmlNode *dmixml_FindNode(xmlNode *node, const char *key) { inline char *dmixml_GetContent(xmlNode *node) { // FIXME: Should find better way how to return UTF-8 data - return (char *) (((node != NULL) && (node->children != NULL)) ? node->children->content : NULL); + return (((node != NULL) && (node->children != NULL)) ? (char *) node->children->content : "(not set)"); } inline char *dmixml_GetNodeContent(xmlNode *node, const char *key) { |