projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible use of uninitialized variable
[lttng-tools.git]
/
ltt-sessiond
/
main.c
diff --git
a/ltt-sessiond/main.c
b/ltt-sessiond/main.c
index c66ecb95690df819ce95825b83f20ac147dd4137..46c98a5611b9e818c0c99e7e7a64bcd56a02b60e 100644
(file)
--- a/
ltt-sessiond/main.c
+++ b/
ltt-sessiond/main.c
@@
-1573,7
+1573,7
@@
static int create_ust_session(struct ltt_session *session,
struct lttng_domain *domain)
{
int ret;
struct lttng_domain *domain)
{
int ret;
- struct ltt_ust_session *lus;
+ struct ltt_ust_session *lus
= NULL
;
struct ust_app *app;
switch (domain->type) {
struct ust_app *app;
switch (domain->type) {
@@
-1585,6
+1585,7
@@
static int create_ust_session(struct ltt_session *session,
}
break;
default:
}
break;
default:
+ ret = LTTCOMM_UNKNOWN_DOMAIN;
goto error;
}
goto error;
}
@@
-2312,7
+2313,7
@@
static int cmd_destroy_session(struct ltt_session *session, char *name)
perror("write kernel poll pipe");
}
perror("write kernel poll pipe");
}
- ret = session_destroy(
name
);
+ ret = session_destroy(
session
);
return ret;
}
return ret;
}
This page took
0.030139 seconds
and
4
git commands to generate.