server/fd.c: Prevent using uninitialized pointers

Vitaliy Margolen wine-devel at kievinfo.com
Sat Jul 4 15:23:11 CDT 2009


James McKenzie wrote:
> [code]
> 
> int a = 0;
> char b = NULL;
> bool c = TRUE;
> 
> [/code]
> 
> Without this, we cannot assume anything.

Static variables are different. They are always initialized to 0. In your
example you show regular variables only. Their initial value is not defined.

Vitaliy.




More information about the wine-devel mailing list