summaryrefslogtreecommitdiff
path: root/ace/Get_Opt.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-17 16:43:00 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-17 16:43:00 +0000
commitb08fcbdb3ad145a7f4ac92fe6aabf9e5f2c6037a (patch)
tree38d704d2fd5d005eca7dde63fd0a8a55d52b1eb4 /ace/Get_Opt.cpp
parent660ed3d7c40f5572cd85d71dfb901de920e32fff (diff)
downloadATCD-b08fcbdb3ad145a7f4ac92fe6aabf9e5f2c6037a.tar.gz
operator (): set optind to 0 if argv is 0.
Diffstat (limited to 'ace/Get_Opt.cpp')
-rw-r--r--ace/Get_Opt.cpp1
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;
}