[PATCH] Fix potentially uninitialized variable p
Wed Jan 8 11:00:00 GMT 2014
On Sun, Dec 22, 2013 at 7:11 AM, Christopher Faylor wrote:
> On Sun, Dec 22, 2013 at 12:40:20AM +0000, Ray Donnelly wrote:
>>- PWCHAR p;
>>+ PWCHAR p = NULL;
> AFAICT, that would result in a NULL dereference. I've checked in
> a different change to handle this.
A NULL dereference is maybe more consistent than the random
dereference that would have otherwise happened.
I was only trying to ensure -Werror builds succeed.
More information about the Cygwin-patches