From aa4336f527bfd837729d785628e7a602712ad1d6 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 19 Sep 2008 17:51:11 +0000 Subject: [PATCH] MFC r1.8: Remove dereference of 'i' which is never set. getopt() will take care of printing an "illegal option" message anyway. Found-by: LLVM/Clang Static Analyzer --- usr.sbin/asf/asf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usr.sbin/asf/asf.c b/usr.sbin/asf/asf.c index 64b371300e..a86212fb8a 100644 --- a/usr.sbin/asf/asf.c +++ b/usr.sbin/asf/asf.c @@ -25,7 +25,7 @@ */ /* $Id: asf.c,v 1.6 2003/11/04 06:38:37 green Exp $ */ /* $FreeBSD: src/usr.sbin/asf/asf.c,v 1.6 2003/11/04 06:38:37 green Exp $ */ -/* $DragonFly: src/usr.sbin/asf/asf.c,v 1.6 2008/07/14 00:09:42 dillon Exp $ */ +/* $DragonFly: src/usr.sbin/asf/asf.c,v 1.6.2.1 2008/09/19 17:51:11 swildner Exp $ */ #define MAXLINE 1024 #include @@ -180,7 +180,7 @@ main(int argc, char *argv[]) FILE *out; /* output file */ char ocbuf[MAXLINE]; int tokens; /* number of tokens on line */ - int i, ch; + int ch; const char *filemode = "w"; /* mode for outfile */ char cwd[MAXPATHLEN]; /* current directory */ char *token[MAXTOKEN]; @@ -203,9 +203,6 @@ main(int argc, char *argv[]) dofind = 1; break; default: - fprintf(stderr, - "Invalid option: %s, aborting\n", - argv[i]); usage(argv[0]); return 1; } -- 2.11.4.GIT