aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/scanner.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-04-05 09:19:52 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-04-05 10:22:04 -0700
commit3c676e8b1a3b52e7af36937537e8fefad71bc448 (patch)
tree5b47ad1a7bd0156fda76e54856e91bea6a49b8d6 /tensorflow/core/lib/strings/scanner.h
parent2d11588a46d48d0b9630bf2362685dd204fd1ed1 (diff)
Fix Scanner so that in RestartCapture, the capture_end_ is reset. Otherwise, an
invalid capture is produced where the end is before the start. Change: 119062729
Diffstat (limited to 'tensorflow/core/lib/strings/scanner.h')
-rw-r--r--tensorflow/core/lib/strings/scanner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/core/lib/strings/scanner.h b/tensorflow/core/lib/strings/scanner.h
index ecbb139d60..19cd8a50fe 100644
--- a/tensorflow/core/lib/strings/scanner.h
+++ b/tensorflow/core/lib/strings/scanner.h
@@ -102,6 +102,7 @@ class Scanner {
// returned will start at the position at the time this was called.
Scanner& RestartCapture() {
capture_start_ = cur_.data();
+ capture_end_ = nullptr;
return *this;
}