[libvirt] [PATCH] conf: Make full use of goto lable

Michal Privoznik mprivozn at redhat.com
Tue Jun 21 08:17:52 UTC 2011


On 21.06.2011 09:13, Osier Yang wrote:
> * virDomainDefParse: There is a goto label "no_memory", which
> reports OOM error, and it then fallthrough lable "error". This
s/lable/label/. And maybe s/it //
> patch changes things like following:
> 
>     virReportOOMError();
>     goto error;
> 
> into:
> 
>     goto no_memory;
> ---
>  src/conf/domain_conf.c |   21 +++++++--------------
>  1 files changed, 7 insertions(+), 14 deletions(-)
ACK.

Michal




More information about the libvir-list mailing list