projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flt.utils.trimmer: fix: variables used uninitialized
[babeltrace.git]
/
plugins
/
utils
/
trimmer
/
trimmer.c
diff --git
a/plugins/utils/trimmer/trimmer.c
b/plugins/utils/trimmer/trimmer.c
index 6403f9e613ba1c5b1cb9b77cd33cba5d87eb58d9..7fd3279bf12bc5cb2ae29c6d177411d76c596e48 100644
(file)
--- a/
plugins/utils/trimmer/trimmer.c
+++ b/
plugins/utils/trimmer/trimmer.c
@@
-479,7
+479,7
@@
bt_self_component_status trimmer_init(bt_self_component_filter *self_comp,
struct trimmer_comp *trimmer_comp = create_trimmer_comp();
if (!trimmer_comp) {
struct trimmer_comp *trimmer_comp = create_trimmer_comp();
if (!trimmer_comp) {
-
ret
= BT_SELF_COMPONENT_STATUS_NOMEM;
+
status
= BT_SELF_COMPONENT_STATUS_NOMEM;
goto error;
}
goto error;
}
@@
-497,6
+497,7
@@
bt_self_component_status trimmer_init(bt_self_component_filter *self_comp,
ret = init_trimmer_comp_from_params(trimmer_comp, params);
if (ret) {
ret = init_trimmer_comp_from_params(trimmer_comp, params);
if (ret) {
+ status = BT_SELF_COMPONENT_STATUS_ERROR;
goto error;
}
goto error;
}
@@
-515,7
+516,7
@@
error:
}
end:
}
end:
- return
ret
;
+ return
status
;
}
static
}
static
@@
-1778,6
+1779,7
@@
bt_self_message_iterator_status handle_message(
*reached_end = true;
} else {
push_message(trimmer_it, msg);
*reached_end = true;
} else {
push_message(trimmer_it, msg);
+ status = BT_SELF_MESSAGE_ITERATOR_STATUS_OK;
msg = NULL;
}
}
msg = NULL;
}
}
This page took
0.026204 seconds
and
4
git commands to generate.