From: Jérémie Galarneau Date: Wed, 6 Apr 2022 17:37:16 +0000 (-0400) Subject: Fix: sessiond: inverted condition checking for empty hash table X-Git-Tag: v2.13.7~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=999394bf231131468124941e884deef27eee2ad8;p=lttng-tools.git Fix: sessiond: inverted condition checking for empty hash table 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 --- 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; }