From f7fbb00cfa697cd1a47def573df65dd4d326c742 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Fri, 18 Apr 1997 06:36:13 +0000 Subject: imported from mkid-3.0.5 --- iid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'iid.c') diff --git a/iid.c b/iid.c index 0238db7..5dee019 100644 --- a/iid.c +++ b/iid.c @@ -1596,9 +1596,8 @@ int main( int argc , char * argv [ ] ) { int c ; /* current option */ - char * CmdPtr ; /* Points to the command string */ + char * CmdPtr = NULL ; /* Points to the command string */ char Command [ MAXCMD ] ; /* Buffer for reading commands */ - int Do1 = 0 ; /* 1 if should only do 1 command */ int DoPrompt ; /* 1 if should write a prompt */ int errors = 0 ; /* error count */ @@ -1610,7 +1609,6 @@ main( int argc , char * argv [ ] ) break ; case 'c': CmdPtr = optarg ; - Do1 = 1 ; break ; case 'H': fputs("\ @@ -1644,7 +1642,7 @@ To get help after starting program type 'help'.\n\ /* run the parser */ - if (Do1) { + if (CmdPtr) { ScanInit(CmdPtr) ; exit(yyparse()) ; } else { -- cgit v1.2.3