[librsvg: 7/28] path_parser: Don't advance the current position in getchar() if we get to EOF
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/28] path_parser: Don't advance the current position in getchar() if we get to EOF
- Date: Tue, 23 Jan 2018 17:59:49 +0000 (UTC)
commit 5b65c538b67bcbc03ac54e3589cfff5b64ee6f64
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jan 23 09:46:17 2018 -0600
path_parser: Don't advance the current position in getchar() if we get to EOF
Thus, self.position will be the last character in the string.
rust/src/path_parser.rs | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/rust/src/path_parser.rs b/rust/src/path_parser.rs
index 51234cd..09996d9 100644
--- a/rust/src/path_parser.rs
+++ b/rust/src/path_parser.rs
@@ -96,7 +96,6 @@ impl<'b> PathParser<'b> {
self.current_pos = pos;
} else {
self.lookahead = None;
- self.current_pos += 1; /* this is EOF; point just past the end the string */
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]