[libvirt] [PATCH] virLogGetOutputs: remove unnecessary braces

22 Feb
2018
22 Feb
'18
7:55 a.m.
Commit 9275def reduced the if block to one line without removing the braces. Signed-off-by: Ján Tomko <jtomko@redhat.com> --- I pushed this yesterday as a build fix, but forgot to send an e-mail. src/util/virlog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virlog.c b/src/util/virlog.c index c03f4fb14..dd927f0ba 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -1219,9 +1219,8 @@ virLogGetOutputs(void) } } - if (virBufferError(&outputbuf)) { + if (virBufferError(&outputbuf)) goto error; - } virLogUnlock(); return virBufferContentAndReset(&outputbuf); -- 2.13.6
2755
Age (days ago)
2755
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ján Tomko