From owner-cvs-src@FreeBSD.ORG Wed Oct 29 01:59:09 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB41016A4CE; Wed, 29 Oct 2003 01:59:09 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A24A543F85; Wed, 29 Oct 2003 01:59:08 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id D28253ABB2D; Wed, 29 Oct 2003 10:57:00 +0100 (CET) Date: Wed, 29 Oct 2003 10:57:00 +0100 From: Pawel Jakub Dawidek To: Martin Blapp Message-ID: <20031029095700.GU84474@garage.freebsd.pl> References: <200310290918.h9T9IiwQ095857@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="QxSStYAgvEtE+iQJ" Content-Disposition: inline In-Reply-To: <200310290918.h9T9IiwQ095857@repoman.freebsd.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p9 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/rpc clnt_simple.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 09:59:09 -0000 --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 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--