projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: use "flush empty" ioctl for snapshots
[lttng-tools.git]
/
src
/
common
/
evaluation.c
diff --git
a/src/common/evaluation.c
b/src/common/evaluation.c
index c6243d232e82690ab9ca4a39cea3ed4aff1de974..43b4e743f22e807dfd799201387ef40b4df755fc 100644
(file)
--- a/
src/common/evaluation.c
+++ b/
src/common/evaluation.c
@@
-27,9
+27,10
@@
ssize_t lttng_evaluation_serialize(struct lttng_evaluation *evaluation,
char *buf)
{
ssize_t ret, offset = 0;
char *buf)
{
ssize_t ret, offset = 0;
- struct lttng_evaluation_comm evaluation_comm;
+ struct lttng_evaluation_comm evaluation_comm = {
+ .type = (int8_t) evaluation->type
+ };
- evaluation_comm.type = (int8_t) evaluation->type;
if (buf) {
memcpy(buf, &evaluation_comm, sizeof(evaluation_comm));
}
if (buf) {
memcpy(buf, &evaluation_comm, sizeof(evaluation_comm));
}
This page took
0.025687 seconds
and
5
git commands to generate.