• J
    Introduce virBufferCheckError · 058d89b9
    Ján Tomko 提交于
    Check if the buffer is in error state and report an error if it is.
    
    This replaces the pattern:
    if (virBufferError(buf)) {
        virReportOOMError();
        goto cleanup;
    }
    with:
    
    if (virBufferCheckError(buf) < 0)
        goto cleanup;
    
    Document typical buffer usage to favor this.
    Also remove the redundant FreeAndReset - if an error has
    been set via virBufferSetError, the content is already freed.
    058d89b9
libvirt_private.syms 48.3 KB