g_clear_pointer is NULL-safe so there's no need to check this.

This commit is contained in:
Sadie Powell 2021-10-06 00:02:25 +01:00
parent 92ae54d415
commit 9b6a173fff
1 changed files with 1 additions and 2 deletions

View File

@ -3471,8 +3471,7 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
}
/** If the server was previously used by a failed STS connection then free the incomplete profile. */
if (serv->stsprofile)
g_clear_pointer (&serv->stsprofile, g_free);
g_clear_pointer (&serv->stsprofile, g_free);
#endif
if (!parse_irc_url (word[2 + offset], &server_name, &port, &channel, &key, &use_ssl))