projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: initialize temporary fd array element to -1
[lttng-tools.git]
/
src
/
common
/
error-query.c
diff --git
a/src/common/error-query.c
b/src/common/error-query.c
index a3663ad7c72e3bccd8926a28e2655459729655c5..01ed1ef216e9f3db5c1cccd318099f4f2b188ac6 100644
(file)
--- a/
src/common/error-query.c
+++ b/
src/common/error-query.c
@@
-47,9
+47,9
@@
struct lttng_error_query_action {
struct lttng_trigger *trigger;
/*
* Index of the target action. Since action lists can't be nested,
struct lttng_trigger *trigger;
/*
* Index of the target action. Since action lists can't be nested,
- * the targetted action is the top-level
group
if the action_index is
+ * the targetted action is the top-level
list
if the action_index is
* unset. Otherwise, the index refers to the index within the top-level
* unset. Otherwise, the index refers to the index within the top-level
- *
group
.
+ *
list
.
*/
LTTNG_OPTIONAL(unsigned int) action_index;
};
*/
LTTNG_OPTIONAL(unsigned int) action_index;
};
@@
-127,7
+127,7
@@
extern struct lttng_error_query *lttng_error_query_action_create(
const struct lttng_action *action)
{
struct lttng_error_query_action *query = NULL;
const struct lttng_action *action)
{
struct lttng_error_query_action *query = NULL;
- typeof(query->action_index) action_index;
+ typeof(query->action_index) action_index
= {}
;
struct lttng_trigger *trigger_copy = NULL;
if (!trigger || !action) {
struct lttng_trigger *trigger_copy = NULL;
if (!trigger || !action) {
@@
-150,7
+150,7
@@
extern struct lttng_error_query *lttng_error_query_action_create(
*/
if (action != trigger->action &&
lttng_action_get_type(trigger->action) ==
*/
if (action != trigger->action &&
lttng_action_get_type(trigger->action) ==
- LTTNG_ACTION_TYPE_
GROUP
) {
+ LTTNG_ACTION_TYPE_
LIST
) {
unsigned int i, action_list_count;
enum lttng_action_status action_status;
unsigned int i, action_list_count;
enum lttng_action_status action_status;
@@
-178,7
+178,7
@@
extern struct lttng_error_query *lttng_error_query_action_create(
}
} else {
/*
}
} else {
/*
- * Trigger action is not a
group
and not equal to the target
+ * Trigger action is not a
list
and not equal to the target
* action; invalid action provided.
*/
goto error;
* action; invalid action provided.
*/
goto error;
@@
-681,8
+681,8
@@
struct lttng_action *lttng_error_query_action_borrow_action_target(
target_action = trigger_action;
} else {
if (lttng_action_get_type(trigger_action) !=
target_action = trigger_action;
} else {
if (lttng_action_get_type(trigger_action) !=
- LTTNG_ACTION_TYPE_
GROUP
) {
- ERR("Invalid action error query target index: trigger action is not a
group
");
+ LTTNG_ACTION_TYPE_
LIST
) {
+ ERR("Invalid action error query target index: trigger action is not a
list
");
goto end;
}
goto end;
}
@@
-827,7
+827,7
@@
ssize_t lttng_error_query_create_from_payload(struct lttng_payload_view *view,
target_action = trigger->action;
} else {
if (lttng_action_get_type(trigger->action) !=
target_action = trigger->action;
} else {
if (lttng_action_get_type(trigger->action) !=
- LTTNG_ACTION_TYPE_
GROUP
) {
+ LTTNG_ACTION_TYPE_
LIST
) {
used_size = -1;
goto end;
}
used_size = -1;
goto end;
}
This page took
0.070327 seconds
and
4
git commands to generate.