diff options
Diffstat (limited to 'contrib/xml2/xpath.c')
-rw-r--r-- | contrib/xml2/xpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c index 11349eff0b0..c5c9bd2f785 100644 --- a/contrib/xml2/xpath.c +++ b/contrib/xml2/xpath.c @@ -212,7 +212,7 @@ xml_encode_special_chars(PG_FUNCTION_ARGS) ressize = strlen(tt); tout = (text *) palloc(ressize + VARHDRSZ); memcpy(VARDATA(tout), tt, ressize); - VARATT_SIZEP(tout) = ressize + VARHDRSZ; + SET_VARSIZE(tout, ressize + VARHDRSZ); xmlFree(tt); @@ -612,7 +612,7 @@ pgxml_result_to_text(xmlXPathObjectPtr res, ressize = strlen(xpresstr); xpres = (text *) palloc(ressize + VARHDRSZ); memcpy(VARDATA(xpres), xpresstr, ressize); - VARATT_SIZEP(xpres) = ressize + VARHDRSZ; + SET_VARSIZE(xpres, ressize + VARHDRSZ); /* Free various storage */ xmlCleanupParser(); |