Print this page
10126 smatch fix for kmfcfg

@@ -19,10 +19,14 @@
  * CDDL HEADER END
  *
  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
 #include <stdio.h>
 #include <strings.h>
 #include <ctype.h>
 #include <libgen.h>
 #include <libintl.h>

@@ -187,11 +191,12 @@
 #define TEXT_DOMAIN     "SYS_TEST"      /* Use this only if it isn't. */
 #endif
         (void) textdomain(TEXT_DOMAIN);
 
         prog = basename(argv[0]);
-        argv++; argc--;
+        argv++;
+        argc--;
 
         if (argc == 0) {
                 usage();
                 exit(1);
         }