Re: [PATCH] exec: Remove unnecessary ‘NULL’ values from vma

From: Kees Cook
Date: Fri Feb 23 2024 - 20:04:58 EST


On Tue, Feb 20, 2024 at 01:18:30PM +0800, Li zeming wrote:
> vma is assigned first, so it does not need to initialize the
> assignment.

I don't really like removing explicit initializations. They don't cause
any problems and the compiler will remove redundant stores, so there's
no benefit in dropping them.

--
Kees Cook