projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: lib/graph: Dereference before null checks
[babeltrace.git]
/
lib
/
graph
/
graph.c
diff --git
a/lib/graph/graph.c
b/lib/graph/graph.c
index b43c35c6504268bd7739e3aeebde8d1945278829..2940355faf897ccbbb691a1e77be6ee46133f9dc 100644
(file)
--- a/
lib/graph/graph.c
+++ b/
lib/graph/graph.c
@@
-82,6
+82,9
@@
struct bt_graph_listener_ports_connected {
do { \
size_t i; \
\
+ if (!_listeners) { \
+ break; \
+ } \
for (i = 0; i < (_listeners)->len; i++) { \
_type *listener = \
&g_array_index((_listeners), _type, i); \
This page took
0.023466 seconds
and
4
git commands to generate.