From 999394bf231131468124941e884deef27eee2ad8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 6 Apr 2022 13:37:16 -0400 Subject: [PATCH] Fix: sessiond: inverted condition checking for empty hash table MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I inverted a condition while reformating 2a6ebf6bd. This reverts the condition to the intention of the original author. Mea culpa. Signed-off-by: Jérémie Galarneau Change-Id: I8c39a89f430dbb4a0f1e385b3b8e4788f188a468 --- src/bin/lttng-sessiond/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index 519c22ab5..6f52bcf4f 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -391,7 +391,7 @@ static bool ltt_sessions_ht_empty(void) assert(ltt_sessions_ht_by_name); - if (lttng_ht_get_count(ltt_sessions_ht_by_id) == 0) { + if (lttng_ht_get_count(ltt_sessions_ht_by_id) != 0) { /* Not empty.*/ goto end; } -- 2.34.1