[libvirt] [PATCH] conf: Make full use of goto lable
Osier Yang
jyang at redhat.com
Tue Jun 21 08:23:05 UTC 2011
On 06/21/2011 04:17 PM, Michal Privoznik wrote:
> 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
Applied with the typos fixed, thanks.
Regards
Osier
More information about the libvir-list
mailing list