Messages in this thread | | | Date | Thu, 24 Aug 2023 09:42:56 -0700 | From | Kees Cook <> | Subject | Re: [PATCH] seccomp: Remove unne cessary ‘NULL’ values from prepared |
| |
On Sat, Aug 26, 2023 at 02:43:48AM +0800, Li zeming wrote: > prepared is assigned first, so it does not need to initialize the > assignment.
I prefer to explicitly initialize variables so that later changes in the code cannot suddenly leave a variable in a surprise state. :) The compiler will do a good job removing redundant and dead stores.
-Kees
-- Kees Cook
| |