Fix: Uninitialized return value in bt_ctf_event_class_get_id
[babeltrace.git] / formats / ctf / ir / event.c
index ccf822a70d358c7f2e610014d40deecd265dcb9e..543ecb7f9dc3528e6a7d4d9d66afb5cc13ec298b 100644 (file)
@@ -137,7 +137,7 @@ end:
 int64_t bt_ctf_event_class_get_id(struct bt_ctf_event_class *event_class)
 {
        struct bt_object *obj = NULL;
-       int64_t ret;
+       int64_t ret = 0;
 
        if (!event_class) {
                ret = -1;
This page took 0.024568 seconds and 4 git commands to generate.