projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
callbacks: Fix set size array size
[babeltrace.git]
/
converter
/
babeltrace-lib.c
diff --git
a/converter/babeltrace-lib.c
b/converter/babeltrace-lib.c
index 3e77f1f3608fbf25befded5bcd2d6a7a62246d38..9b01281f3438c5c328e4650897e5ec53f0865c30 100644
(file)
--- a/
converter/babeltrace-lib.c
+++ b/
converter/babeltrace-lib.c
@@
-190,7
+190,7
@@
int babeltrace_iter_add_callback(struct babeltrace_iter *iter,
/* find or create the bt_callback_chain for this event */
if (event_id >= bt_stream_cb->per_id_callbacks->len) {
/* find or create the bt_callback_chain for this event */
if (event_id >= bt_stream_cb->per_id_callbacks->len) {
- g_array_set_size(bt_stream_cb->per_id_callbacks, event_id);
+ g_array_set_size(bt_stream_cb->per_id_callbacks, event_id
+ 1
);
}
bt_chain = &g_array_index(bt_stream_cb->per_id_callbacks,
struct bt_callback_chain, event_id);
}
bt_chain = &g_array_index(bt_stream_cb->per_id_callbacks,
struct bt_callback_chain, event_id);
This page took
0.022869 seconds
and
4
git commands to generate.