Fix: Uninitialized return value in bt_ctf_event_class_get_id
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Mar 2015 19:05:28 +0000 (15:05 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Mar 2015 20:10:57 +0000 (16:10 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event.c
include/Makefile.am

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;
index 2928f7575228496a50045d99abb2f7b04afd523a..be4999a58f511d2b0df92e7282b614adb1cb0b45 100644 (file)
@@ -60,6 +60,7 @@ noinst_HEADERS = \
        babeltrace/ctf-ir/stream-class-internal.h \
        babeltrace/ctf-ir/stream-internal.h \
        babeltrace/ctf-ir/trace-internal.h \
+       babeltrace/ctf-ir/visitor-internal.h \
        babeltrace/ctf-writer/functor-internal.h \
        babeltrace/trace-handle-internal.h \
        babeltrace/compat/uuid.h \
This page took 0.025581 seconds and 4 git commands to generate.