summaryrefslogtreecommitdiff
path: root/ace/Process.cpp
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-23 19:01:17 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-23 19:01:17 +0000
commit2fc8a47acde87ca4ea32edd316917175754d4263 (patch)
tree0563a0e4ef3d8aebea4ad50fa347da05588df4f1 /ace/Process.cpp
parent6c23dc75e2a0478911e19f810baf7187f79048ff (diff)
downloadATCD-2fc8a47acde87ca4ea32edd316917175754d4263.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r--ace/Process.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp
index bcbe74b8041..59950838d20 100644
--- a/ace/Process.cpp
+++ b/ace/Process.cpp
@@ -161,13 +161,6 @@ ACE_Tokenizer::next (void)
// Advance pointer.
index_++;
- // Check for end of string.
- if (buffer_[index_] == '\0')
- {
- index_ = -1;
- goto EXIT_LABEL;
- }
-
// Check for delimiter.
if (this->is_delimiter (buffer_[index_], replace, replacement))
{
@@ -183,6 +176,13 @@ ACE_Tokenizer::next (void)
// A preserve designator signifies the end of this token.
if (this->is_preserve_designator (buffer_[index_], stop, strip))
goto EXIT_LABEL;
+
+ // Check for end of string.
+ if (buffer_[index_] == '\0')
+ {
+ index_ = -1;
+ goto EXIT_LABEL;
+ }
}
EXIT_LABEL: