Author: hiren Date: Mon Aug 25 05:52:05 2014 New Revision: 270518 URL: http://svnweb.freebsd.org/changeset/base/270518
Log: Fix a typo to catch correct condition. Modified: head/usr.sbin/wlandebug/wlandebug.c Modified: head/usr.sbin/wlandebug/wlandebug.c ============================================================================== --- head/usr.sbin/wlandebug/wlandebug.c Mon Aug 25 05:26:48 2014 (r270517) +++ head/usr.sbin/wlandebug/wlandebug.c Mon Aug 25 05:52:05 2014 (r270518) @@ -177,7 +177,7 @@ main(int argc, char *argv[]) setoid(oid, sizeof(oid), NULL); argc -= 1, argv += 1; } else if (strcmp(argv[1], "-i") == 0) { - if (argc < 2) + if (argc <= 2) errx(1, "missing interface name for -i option"); if (strncmp(argv[2], "wlan", 4) != 0) errx(1, "expecting a wlan interface name"); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"