commit e856a80551b165e8e83e863da719bb862aee2e16
parent 8bbabd86e1fad0ebb1db1e2d0063214021fd0488
Author: Jacki <jacki@thejackimonster.de>
Date: Sat, 5 Oct 2024 18:00:41 +0200
Skip rename operation in case of no changes at all
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c
@@ -627,6 +627,9 @@ handle_rename_account (struct GNUNET_CHAT_Handle *handle,
{
GNUNET_assert((handle) && (old_name) && (new_name));
+ if (0 == strcmp(old_name, new_name))
+ return GNUNET_OK;
+
struct GNUNET_CHAT_InternalAccounts *accounts;
accounts = find_accounts_by_name(handle, old_name);