Improve const correctness
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -633,8 +633,7 @@ otr_get_their_fingerprint(const char* const recipient)
|
||||
prof_otrpolicy_t
|
||||
otr_get_policy(const char* const recipient)
|
||||
{
|
||||
char* account_name = session_get_account_name();
|
||||
ProfAccount* account = accounts_get_account(account_name);
|
||||
ProfAccount* account = accounts_get_account(session_get_account_name());
|
||||
// check contact specific setting
|
||||
if (g_list_find_custom(account->otr_manual, recipient, (GCompareFunc)g_strcmp0)) {
|
||||
account_free(account);
|
||||
|
||||
Reference in New Issue
Block a user