svn commit: r245807 - head/usr.bin/dtc

David Chisnall theraven at FreeBSD.org
Tue Jan 22 18:12:32 UTC 2013


Author: theraven
Date: Tue Jan 22 18:12:31 2013
New Revision: 245807
URL: http://svnweb.freebsd.org/changeset/base/245807

Log:
  Fix logic error in explicitly specified dtb versions spotted by gavin.

Modified:
  head/usr.bin/dtc/dtc.cc

Modified: head/usr.bin/dtc/dtc.cc
==============================================================================
--- head/usr.bin/dtc/dtc.cc	Tue Jan 22 18:07:59 2013	(r245806)
+++ head/usr.bin/dtc/dtc.cc	Tue Jan 22 18:12:31 2013	(r245807)
@@ -164,7 +164,7 @@ main(int argc, char **argv)
 			debug_mode = true;
 			break;
 		case 'V':
-			if (string(optarg) == string("17"))
+			if (string(optarg) != string("17"))
 			{
 				fprintf(stderr, "Unknown output format version: %s\n", optarg);
 				return EXIT_FAILURE;


More information about the svn-src-all mailing list