Bernd, I saw that. That's exactly why I was a bit confused about the
initialization in the variable declaration. Back when I was a lad
there were two schools of thought. One half of people did initialize
all variables upon declaration, the other half never did so,
initializing them in the main code body instead. That way you could
make it clear to an outside reviewer from which point on a variable is
actually used.

On Tue, 25 Feb 2025 at 20:10, Bernd Böckmann via Freedos-devel
<freedos-devel@lists.sourceforge.net> wrote:
>
>
> On 25.02.2025 19:16, Danilo Pecher via Freedos-devel wrote:
> > Actually the first snippet looks a bit dodgy to me. Why initialize one
> > pointer and not the other?
>
> https://gitlab.com/FreeDOS/base/mem/-/blob/62832f6570204d3cacff7dc858ec84860ff12d91/SOURCE/MEM/MEM.C#L1677
>
> ;)
>
>
>
>
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to