[augeas-devel] augeas: master - * src/get.c (get_error): use end of last match as error position
David Lutterkort
lutter at fedoraproject.org
Tue Oct 20 13:20:13 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=5ac622b5832ee30aec53b6f04fc238341145d1b3
Commit: 5ac622b5832ee30aec53b6f04fc238341145d1b3
Parent: 334bc5f2dd873ac3bf8eb9125092336edc6001ce
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Tue Oct 20 14:32:57 2009 +0200
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Tue Oct 20 14:32:57 2009 +0200
* src/get.c (get_error): use end of last match as error position
---
src/get.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/get.c b/src/get.c
index 05e91ba..322233f 100644
--- a/src/get.c
+++ b/src/get.c
@@ -101,7 +101,7 @@ static void get_error(struct state *state, struct lens *lens,
CALLOC(state->error, 1);
state->error->lens = ref(lens);
if (REG_MATCHED(state))
- state->error->pos = REG_START(state);
+ state->error->pos = REG_END(state);
else
state->error->pos = 0;
va_start(ap, format);
More information about the augeas-devel
mailing list