projects
/
deliverable
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6c9bd
)
Fix: sanity check in iterator creation
author
Julien Desfossez
<jdesfossez@efficios.com>
Tue, 18 Nov 2014 17:52:32 +0000
(12:52 -0500)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Tue, 2 Dec 2014 16:01:10 +0000
(11:01 -0500)
This function is part of the public API; we need more
sanity checks before using the structures provided by the caller.
Refs: #827
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/iterator.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/iterator.c
b/lib/iterator.c
index d2464ab7c4f8274e2fadee6e70a6f8a51f76dcc4..540d5e9bcf04b6ba46ca99c2a66db9ec7e31ec74 100644
(file)
--- a/
lib/iterator.c
+++ b/
lib/iterator.c
@@
-720,7
+720,7
@@
int bt_iter_init(struct bt_iter *iter,
int i;
int ret = 0;
- if (!iter || !ctx)
+ if (!iter || !ctx
|| !ctx->tc || !ctx->tc->array
)
return -EINVAL;
if (ctx->current_iterator) {
This page took
0.024584 seconds
and
5
git commands to generate.