Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2003 10:57:00 +0100
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        Martin Blapp <mbr@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/rpc clnt_simple.c
Message-ID:  <20031029095700.GU84474@garage.freebsd.pl>
In-Reply-To: <200310290918.h9T9IiwQ095857@repoman.freebsd.org>
References:  <200310290918.h9T9IiwQ095857@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--QxSStYAgvEtE+iQJ
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

Hi Martin!:)

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

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

--=20
Pawel Jakub Dawidek                       pawel@dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net

--QxSStYAgvEtE+iQJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iQCVAwUBP5+O7D/PhmMH/Mf1AQE52wP7BhI7L+ZylpUAhjOEg8vNfzQb+C1TWCx2
KovurwYtiHoWAxgwKgICQ56VBIZZpYV+lA0Km1zELLs64P2B8PZ6RsXlQwDGrrCM
zCcwNa0bOe+sZYcUXxONOoUHkTRxQgEkWDnjxVQsAOnisf8VyWBUhwY3EAnn9boD
8cPP0dWuGGw=
=UHjz
-----END PGP SIGNATURE-----

--QxSStYAgvEtE+iQJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031029095700.GU84474>