Sujet : Re: Fixing a sample from K&R book using cake static analyser
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 25. Jun 2024, 00:01:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5ctt1$15hrn$3@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.158 (Avdiivka; )
On Mon, 24 Jun 2024 11:53:51 +0100, Ben Bacarisse wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
Too many different paths in the control flow, though. I think it’s a
good idea to minimize that.
Your non-solution has more.
My solution only has one major flow of control: in the top and out the
bottom. Everything else is error checks, and it is quite obvious where
they all go--through the same cleanup path.