projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: tests: unchecked closedir value in test_fd_tracker
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-metadata.c
diff --git
a/src/bin/lttng-sessiond/ust-metadata.c
b/src/bin/lttng-sessiond/ust-metadata.c
index 7c6cbc63d8370e29d7caf3ac7a2363c385c657b6..08199a16a080d438408b627d05f7b04778e2e36b 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-metadata.c
+++ b/
src/bin/lttng-sessiond/ust-metadata.c
@@
-85,8
+85,10
@@
int get_count_order(unsigned int count)
int order;
order = fls(count) - 1;
int order;
order = fls(count) - 1;
- if (count & (count - 1))
+ if (count & (count - 1))
{
order++;
order++;
+ }
+ assert(order >= 0);
return order;
}
return order;
}
@@
-220,7
+222,7
@@
void sanitize_ctf_identifier(char *out, const char *in)
static
int print_escaped_ctf_string(struct ust_registry_session *session, const char *string)
{
static
int print_escaped_ctf_string(struct ust_registry_session *session, const char *string)
{
- int ret;
+ int ret
= 0
;
size_t i;
char cur;
size_t i;
char cur;
This page took
0.031053 seconds
and
4
git commands to generate.