]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Make full use of goto label
authorOsier Yang <jyang@redhat.com>
Tue, 21 Jun 2011 08:20:15 +0000 (16:20 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 21 Jun 2011 08:20:15 +0000 (16:20 +0800)
commita22dbe0d661b138badef9604d1c5e2a48d49a51a
tree89d2da0f4c619490e7c687f4a22532b0d488d7b0
parent9a2ac25a63de74e8a645a86980fd90297ab5d073
conf: Make full use of goto label

* virDomainDefParse: There is a goto label "no_memory", which
reports OOM error, and then fallthrough label "error". This
patch changes things like following:

    virReportOOMError();
    goto error;

into:

    goto no_memory;
src/conf/domain_conf.c