Re: [Dnsmasq-discuss] [PATCH] remove self assignment on variable creatrion on stack

2020-03-02 Thread Simon Kelley
On 02/03/2020 21:45, Donald Sharp wrote: > In C when declaring a variable on the stack, it is assigned > what ever happens to be on the stack at the place the variable > is accessed in memory from previous usage. Let's explicitly call out a > value instead of using whatever happens to be on the st

[Dnsmasq-discuss] [PATCH] remove self assignment on variable creatrion on stack

2020-03-02 Thread Donald Sharp
In C when declaring a variable on the stack, it is assigned what ever happens to be on the stack at the place the variable is accessed in memory from previous usage. Let's explicitly call out a value instead of using whatever happens to be on the stack at the point of creation of the sav value. S