mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 06:06:21 +00:00
Fixed cppcheck warnings
This commit is contained in:
@@ -494,10 +494,8 @@ muc_complete_roster_nick_change(const char * const room,
|
||||
|
||||
if (chat_room != NULL) {
|
||||
char *old_nick = g_hash_table_lookup(chat_room->nick_changes, nick);
|
||||
char *old_nick_cpy;
|
||||
|
||||
if (old_nick != NULL) {
|
||||
old_nick_cpy = strdup(old_nick);
|
||||
char *old_nick_cpy = strdup(old_nick);
|
||||
g_hash_table_remove(chat_room->nick_changes, nick);
|
||||
|
||||
return old_nick_cpy;
|
||||
@@ -543,4 +541,4 @@ gint _compare_participants(PContact a, PContact b)
|
||||
g_free(key_b);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user