cvs commit: src/lib/libc/rpc clnt_simple.c

Pawel Jakub Dawidek nick at garage.freebsd.pl
Wed Oct 29 01:59:09 PST 2003


On Wed, Oct 29, 2003 at 01:18:44AM -0800, Martin Blapp wrote:
+>   Commiter:	Martin Blapp <mbr at FreeBSD.org>

Hi Martin!:)

+>   Log:
+>   Don't use NULL to compare against a character.
[...]
+> -	if ((nettype == NULL) || (nettype[0] == NULL))
+> +	if ((nettype == NULL) || (nettype[0] == 0))

More correct is to use '\0' for characters comparsion.

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20031029/d611f48a/attachment.bin


More information about the cvs-all mailing list