diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-17 16:43:00 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-17 16:43:00 +0000 |
commit | e882c1f5409e70afdb78991465f958fc7713f886 (patch) | |
tree | 38d704d2fd5d005eca7dde63fd0a8a55d52b1eb4 /ace/Get_Opt.cpp | |
parent | 43987b0f08cfbc4ea732a11b2d799df00c10d7a2 (diff) | |
download | ATCD-e882c1f5409e70afdb78991465f958fc7713f886.tar.gz |
operator (): set optind to 0 if argv is 0.
Diffstat (limited to 'ace/Get_Opt.cpp')
-rw-r--r-- | ace/Get_Opt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ace/Get_Opt.cpp b/ace/Get_Opt.cpp index a28b7306cec..6486a99cfe8 100644 --- a/ace/Get_Opt.cpp +++ b/ace/Get_Opt.cpp @@ -77,6 +77,7 @@ ACE_Get_Opt::operator () (void) if (argv_ == 0) { // It can happen, e.g., on VxWorks. + optind = 0; return EOF; } |