[Midnightbsd-cvs] src [9313] trunk/sbin/tunefs/tunefs.c: fix error check.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Mar 2 19:10:13 EST 2017


Revision: 9313
          http://svnweb.midnightbsd.org/src/?rev=9313
Author:   laffer1
Date:     2017-03-02 19:10:13 -0500 (Thu, 02 Mar 2017)
Log Message:
-----------
fix error check.

Modified Paths:
--------------
    trunk/sbin/tunefs/tunefs.c

Modified: trunk/sbin/tunefs/tunefs.c
===================================================================
--- trunk/sbin/tunefs/tunefs.c	2017-03-02 23:40:08 UTC (rev 9312)
+++ trunk/sbin/tunefs/tunefs.c	2017-03-03 00:10:13 UTC (rev 9313)
@@ -172,7 +172,7 @@
 			found_arg = 1;
 			name = "space to hold for metadata blocks";
 			kvalue = atoi(optarg);
-			if (mvalue < 0)
+			if (kvalue < 0)
 				errx(10, "bad %s (%s)", name, optarg);
 			kflag = 1;
 			break;



More information about the Midnightbsd-cvs mailing list