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
..
2013-12-02 10:21:26 +08:00
2014-06-26 15:25:05 -06:00
2013-12-02 11:59:18 -07:00
2013-12-02 10:21:26 +08:00
2014-03-01 23:44:58 +04:00
2014-03-03 17:41:26 +04:00
2013-12-02 10:21:26 +08:00
2014-07-03 10:41:15 +02:00
2014-02-18 14:46:49 +01:00
2014-03-01 23:44:58 +04:00
2009-07-16 15:06:42 +02:00
2014-07-02 13:50:18 +08:00
2009-07-29 09:04:21 +01:00
2013-12-02 10:21:26 +08:00
2013-09-12 17:18:32 +08:00
2013-11-26 18:37:09 +08:00
2014-03-01 23:44:58 +04:00