/* Returns -1 in case of error, 0 otherwise, in any case @buffer is freed  */
int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer)
/* Returns -1 in case of error, 0 otherwise, in any case @buffer is freed  */
int xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer)
{
	xmlBufferFree(buffer);
        return(-1);
    }
    CHECK_COMPAT(buf)
    if ((buffer != NULL) && (buffer->content != NULL) &&
             (buffer->use > 0)) {
        ret = xmlBufAdd(buf, buffer->content, buffer->use);
    }
    xmlBufferFree(buffer);
    return(ret);
}