• J
    conf: check for buffer errors before virBufferUse · 7330a365
    Ján Tomko 提交于
    After an OOM error, virBuffer* APIs set buf->use to zero.
    Adding a buffer to the parent buffer only if use is non-zero
    would quietly drop data on error.
    
    Check the error beforehand to make sure buf->use is zero
    because we have not attempted to add anything to it.
    7330a365
cpu_conf.c 27.3 KB