]> www.infradead.org Git - pidgin-chime.git/commitdiff
Revert "use g_memdup2"
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 12 Nov 2023 19:04:10 +0000 (14:04 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 12 Nov 2023 19:06:47 +0000 (14:06 -0500)
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>
chime/chime-signin.c

index 91ca3a09757c63e4a21105cad5523b5214d7230d..7ed1142c3d83a9500ef3a8c5364d780985195378 100644 (file)
@@ -229,8 +229,8 @@ static xmlNode **xpath_nodes(struct dom *dom, guint *count, const char *fmt, ...
        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;