Fix: sessiond: fix -Wshadow error in save.c
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 31 Mar 2021 19:06:34 +0000 (15:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 May 2021 17:26:44 +0000 (13:26 -0400)
I think this actually fixes a bug. Because of the second ret variable,
the return value from init_ust_event_from_agent_event or save_ust_event
would not be forwarded correctly, in case of error.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ieb61d9b267ab90e18cc349d86754d9b89b5703f1

src/bin/lttng-sessiond/save.c

index cdeb4004d6b4f99e8ef5c6b5a99f9d9f55dd2c7a..f53a527f5a0231a90af7094db972fb5bac41b3b2 100644 (file)
@@ -1109,7 +1109,6 @@ int save_agent_events(struct config_writer *writer,
 
        rcu_read_lock();
        cds_lfht_for_each_entry(agent->events->ht, &iter.iter, node, node) {
-               int ret;
                struct agent_event *agent_event;
                struct ltt_ust_event fake_event;
 
This page took 0.02844 seconds and 4 git commands to generate.