On Mon, Aug 08, 2022 at 01:03:13AM +0300, Vitaliy Makkoveev wrote:
> > I prefer the first idiom.  If there is an error, do something.  We
> > should not change the style in opposite direction.  This will prevent
> > consistency.
> > 
> 
> I???m not entirely understand you. When we have something to do in the
> error path, I use "goto out??? and it works like the first idiom.

Ah, sorry.  I was speaking about the != 0.  The break, return, goto
is fine.  error != 0 is just style and does not affect correctness.

> >> -  if (error)
> >> +  if (error != 0)

Reply via email to