/pidgin/main: 548c6cd94aa6: Remove unnecessary NULL check.
Elliott Sales de Andrade <[email protected]> Tue, 23 Aug 2016 22:51:06 -0400
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 548c6cd94aa68699f06e5d89f058936688554a53 Author: Elliott Sales de Andrade <[email protected]> Date: 2016-08-23 04:43 -0400 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/548c6cd94aa6 Description: Remove unnecessary NULL check. g_strdup understands NULL input. Also, fix the indentation on this line. diffstat: libpurple/sslconn.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diffs (13 lines): diff --git a/libpurple/sslconn.c b/libpurple/sslconn.c --- a/libpurple/sslconn.c +++ b/libpurple/sslconn.c @@ -254,8 +254,7 @@ purple_ssl_connect_with_host_fd(PurpleAc gsc->connect_cb = func; gsc->error_cb = error_func; gsc->fd = fd; - if(host) - gsc->host = g_strdup(host); + gsc->host = g_strdup(host); gsc->cancellable = g_cancellable_new(); if (!tls_connect(gsc)) { _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits