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
commite882c1f5409e70afdb78991465f958fc7713f886 (patch)
tree38d704d2fd5d005eca7dde63fd0a8a55d52b1eb4 /ace/Get_Opt.cpp
parent43987b0f08cfbc4ea732a11b2d799df00c10d7a2 (diff)
downloadATCD-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.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;
}