summaryrefslogtreecommitdiffstats
path: root/iid.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
committerGreg McGary <greg@mcgary.org>1997-04-18 06:36:13 +0000
commitf7fbb00cfa697cd1a47def573df65dd4d326c742 (patch)
treeeda6aec5ae8de93a0d90dfe3e05d0c09d0e4cb8b /iid.c
parent9da09030255feafece5f9d87617a64d5c66ede6f (diff)
downloadidutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.gz
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.tar.bz2
idutils-f7fbb00cfa697cd1a47def573df65dd4d326c742.zip
imported from mkid-3.0.5r3_0_5
Diffstat (limited to 'iid.c')
-rw-r--r--iid.c6
1 files changed, 2 insertions, 4 deletions
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 {