This reverts commit
51efa090a8d3153ce2012d04c77e5e93bee8c8a9.
The g_memdup2() function hasn't been around for that long, and we aren't
going to hit the case where it matters. Just tell glib not to whine.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
results = xmlXPathEval(BAD_CAST expression, dom->context);
if (results && results->type == XPATH_NODESET && results->nodesetval) {
*count = (guint) results->nodesetval->nodeNr;
- nodes = g_memdup2(results->nodesetval->nodeTab,
- results->nodesetval->nodeNr * sizeof(xmlNode *));
+ nodes = g_memdup(results->nodesetval->nodeTab,
+ results->nodesetval->nodeNr * sizeof(xmlNode *));
} else {
*count = 0;
nodes = NULL;