Doesn't matter if the variable is used before being assigned a value or not. A variable of this import should always be given a default value at the time of declaration. End of story. Arguing about whether its use is before or after it is assigned a value is just silly.

On 2/5/2013 1:41 PM, Brian Wilkins wrote:

It's a variable that points to null, this is a valid check to see if the pointer is null. Coverity is showing a false positive.

On Feb 5, 2013 1:10 PM, "Arthur Mesh" <arthurmesh@gmail.com> wrote:
On Tue, Feb 05, 2013 at 12:57:47PM -0500, Brian Wilkins wrote:
> No matter..this is the right way to check if a pointer is null in C.
> http://stackoverflow.com/questions/7970617/how-can-i-check-if-char-variable-points-to-empty-string

Yes, but you can't check for a value of an uninitialized variable.


_______________________________________________
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users