From 9ea90c02935714561ae303f67c8f3af6acfaa8b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 20 Mar 2015 15:05:28 -0400 Subject: [PATCH] Fix: Uninitialized return value in bt_ctf_event_class_get_id MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/event.c | 2 +- include/Makefile.am | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/formats/ctf/ir/event.c b/formats/ctf/ir/event.c index ccf822a7..543ecb7f 100644 --- a/formats/ctf/ir/event.c +++ b/formats/ctf/ir/event.c @@ -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; diff --git a/include/Makefile.am b/include/Makefile.am index 2928f757..be4999a5 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -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 \ -- 2.34.1