g_clear_pointer is NULL-safe so there's no need to check this.
This commit is contained in:
parent
92ae54d415
commit
9b6a173fff
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue