diff options
Diffstat (limited to 'server/parser/xmlparser.c')
| -rw-r--r-- | server/parser/xmlparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/parser/xmlparser.c b/server/parser/xmlparser.c index 3ab99bb..70308d0 100644 --- a/server/parser/xmlparser.c +++ b/server/parser/xmlparser.c @@ -127,7 +127,7 @@ char *sqldataValueHash(xmlNode *sql_n) { hash = xmlGetAttrValue(sql_n->properties, "hash"); if( !hash ) { // If no hash attribute is found, just use the raw data - ret = strdup(xmlExtractContent(sql_n)); + ret = strdup_nullsafe(xmlExtractContent(sql_n)); } else if( strcasecmp(hash, "sha1") == 0 ) { const char *indata = xmlExtractContent(sql_n); // SHA1 hashing requested |
