diff options
Diffstat (limited to 'src/util/virxml.c')
-rw-r--r-- | src/util/virxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/virxml.c b/src/util/virxml.c index 46c79e2d94..209c83b6cc 100644 --- a/src/util/virxml.c +++ b/src/util/virxml.c @@ -91,7 +91,7 @@ virXPathString(const char *xpath, xmlXPathFreeObject(obj); return NULL; } - ignore_value(VIR_STRDUP(ret, (char *) obj->stringval)); + ret = g_strdup((char *)obj->stringval); xmlXPathFreeObject(obj); return ret; } @@ -995,7 +995,7 @@ virXMLNodeToString(xmlDocPtr doc, goto cleanup; } - ignore_value(VIR_STRDUP(ret, (const char *)xmlBufferContent(xmlbuf))); + ret = g_strdup((const char *)xmlBufferContent(xmlbuf)); cleanup: xmlBufferFree(xmlbuf); |