Initialize exit code so that the program exits with code 0 on success.
PR: bin/10904 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
This commit is contained in:
parent
fdd1fe20a4
commit
fce8f73e4d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47416
@ -36,7 +36,7 @@ static const char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: main.c,v 1.6 1997/10/15 06:41:17 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -84,7 +84,7 @@ main(argc, argv)
|
||||
char **argv;
|
||||
{
|
||||
char ch;
|
||||
int error;
|
||||
int error = 0;
|
||||
|
||||
while ((ch = getopt(argc, argv, "abcdDfijkKlmnqrstuv:")) != -1)
|
||||
switch (ch) {
|
||||
|
Loading…
Reference in New Issue
Block a user