Print this page
10126 smatch fix for kmfcfg
*** 19,28 ****
--- 19,32 ----
* 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,197 ****
#define TEXT_DOMAIN "SYS_TEST" /* Use this only if it isn't. */
#endif
(void) textdomain(TEXT_DOMAIN);
prog = basename(argv[0]);
! argv++; argc--;
if (argc == 0) {
usage();
exit(1);
}
--- 191,202 ----
#define TEXT_DOMAIN "SYS_TEST" /* Use this only if it isn't. */
#endif
(void) textdomain(TEXT_DOMAIN);
prog = basename(argv[0]);
! argv++;
! argc--;
if (argc == 0) {
usage();
exit(1);
}