[stunnel-users] fix resource leaks and potential null

Bing H Bang bingb at tcsaa.com
Tue Feb 5 20:00:48 CET 2013


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 at gmail.com 
> <mailto:arthurmesh at 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 at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20130205/05b5f84e/attachment.html>


More information about the stunnel-users mailing list