This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix potentially uninitialized variable p


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.

Thanks,

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.

>
> cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]