svn commit: r208831 - head/usr.sbin/tzsetup

Edwin Groothuis edwin at FreeBSD.org
Sat Jun 5 12:53:46 UTC 2010


Author: edwin
Date: Sat Jun  5 12:53:44 2010
New Revision: 208831
URL: http://svn.freebsd.org/changeset/base/208831

Log:
  Add comment that this value is unused.
  It is obvious that it isn't used, but both clang and Coverity talk about it.
  
  Found with:   Coverity Prevent(tm)
  CID:          8066

Modified:
  head/usr.sbin/tzsetup/tzsetup.c

Modified: head/usr.sbin/tzsetup/tzsetup.c
==============================================================================
--- head/usr.sbin/tzsetup/tzsetup.c	Sat Jun  5 12:49:39 2010	(r208830)
+++ head/usr.sbin/tzsetup/tzsetup.c	Sat Jun  5 12:53:44 2010	(r208831)
@@ -358,7 +358,7 @@ read_zones(void)
 		if (strlen(tlc) != 2)
 			errx(1, "%s:%d: invalid country code `%s'",
 			    path_zonetab, lineno, tlc);
-		coord = strsep(&line, "\t");
+		coord = strsep(&line, "\t");	 /* Unused */
 		file = strsep(&line, "\t");
 		p = strchr(file, '/');
 		if (p == 0)


More information about the svn-src-head mailing list