projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix SEEK_BEGIN for streams that do not contain any event
[babeltrace.git]
/
lib
/
iterator.c
diff --git
a/lib/iterator.c
b/lib/iterator.c
index 411b377ecf8cda2e6a1ec2ada151e0ed3d944eae..c50b0ef36c18085496b0933832b9dd3df5ec3044 100644
(file)
--- a/
lib/iterator.c
+++ b/
lib/iterator.c
@@
-471,6
+471,10
@@
int bt_iter_set_pos(struct bt_iter *iter, const struct bt_iter_pos *iter_pos)
if (ret != 0 && ret != EOF) {
goto error;
}
+ if (ret == EOF) {
+ /* Do not add EOF streams */
+ continue;
+ }
ret = heap_insert(iter->stream_heap, file_stream);
if (ret)
goto error;
This page took
0.022509 seconds
and
4
git commands to generate.