diff options
author | Colin Walters <walters@verbum.org> | 2013-04-08 14:44:32 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-04-08 14:44:32 -0400 |
commit | 3cfad15a57bb16cc7a0ee3655c8e0d4bdab0a056 (patch) | |
tree | cee4d3716742fddb9090580445960a74eb1c9260 /girepository | |
parent | d5f26ced508bd1f91e769329b46ee1989fd4134a (diff) | |
download | gobject-introspection-3cfad15a57bb16cc7a0ee3655c8e0d4bdab0a056.tar.gz |
typelib: Fix logic error in previous commit
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/gitypelib.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index 10bb98e0..f7d07e3f 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -252,11 +252,16 @@ strsplit_iter_next (StrSplitIter *iter, if (!s) return FALSE; next = strstr (s, iter->separator); - iter->s = next; if (next) - len = next - s; + { + iter->s = next + 1; + len = next - s; + } else - len = strlen (s); + { + iter->s = NULL; + len = strlen (s); + } g_string_overwrite_len (&iter->buf, 0, s, (gssize)len); *out_val = iter->buf.str; return TRUE; |