Ján Tomko
058d89b9df
Introduce virBufferCheckError
...
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.
2014-07-03 10:41:15 +02:00
..
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-03 10:41:15 +02:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00
2014-07-02 13:50:18 +08:00