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
[-- Attachment #1 --] 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 == NULL) || (nettype[0] == NULL)) +> + if ((nettype == NULL) || (nettype[0] == 0)) More correct is to use '\0' for characters comparsion. -- Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP5+O7D/PhmMH/Mf1AQE52wP7BhI7L+ZylpUAhjOEg8vNfzQb+C1TWCx2 KovurwYtiHoWAxgwKgICQ56VBIZZpYV+lA0Km1zELLs64P2B8PZ6RsXlQwDGrrCM zCcwNa0bOe+sZYcUXxONOoUHkTRxQgEkWDnjxVQsAOnisf8VyWBUhwY3EAnn9boD 8cPP0dWuGGw= =UHjz -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031029095700.GU84474>
