Fix: sessiond: no rotation performed from null chunk to new chunk
[lttng-tools.git] / src / bin / lttng-sessiond / ust-metadata.c
index 7c6cbc63d8370e29d7caf3ac7a2363c385c657b6..08199a16a080d438408b627d05f7b04778e2e36b 100644 (file)
@@ -85,8 +85,10 @@ int get_count_order(unsigned int count)
        int order;
 
        order = fls(count) - 1;
-       if (count & (count - 1))
+       if (count & (count - 1)) {
                order++;
+       }
+       assert(order >= 0);
        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)
 {
-       int ret;
+       int ret = 0;
        size_t i;
        char cur;
 
This page took 0.023503 seconds and 4 git commands to generate.