projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: unused assignation of ret value
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 0dd12b26f3222584e2b53703a37364ce76c2dcb4..b0fe8ab74af65ad5565d184cf304cb6da82f4dd1 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-1959,6
+1959,11
@@
int lttng_list_events(struct lttng_handle *handle,
goto end;
}
goto end;
}
+ if (!cmd_header) {
+ ret = -LTTNG_ERR_UNK;
+ goto end;
+ }
+
/* Set number of events and free command header */
nb_events = cmd_header->nb_events;
if (nb_events > INT_MAX) {
/* Set number of events and free command header */
nb_events = cmd_header->nb_events;
if (nb_events > INT_MAX) {
@@
-2034,7
+2039,6
@@
int lttng_list_events(struct lttng_handle *handle,
probe_storage_req = ret;
comm_ext_at += ext_comm->userspace_probe_location_len;
probe_storage_req = ret;
comm_ext_at += ext_comm->userspace_probe_location_len;
- ret = 0;
}
storage_req += sizeof(struct lttng_event_extended);
}
storage_req += sizeof(struct lttng_event_extended);
@@
-2722,7
+2726,7
@@
int lttng_list_tracker_pids(struct lttng_handle *handle,
int enabled = 1;
struct lttcomm_session_msg lsm;
size_t nr_pids;
int enabled = 1;
struct lttcomm_session_msg lsm;
size_t nr_pids;
- int32_t *pids;
+ int32_t *pids
= NULL
;
if (handle == NULL) {
return -LTTNG_ERR_INVALID;
if (handle == NULL) {
return -LTTNG_ERR_INVALID;
This page took
0.025429 seconds
and
4
git commands to generate.