Mercurial > pidgin.yaz
changeset 24834:41e69c65b006
Slightly modified version of a fix fqueze proposed for a crash with the empty
resource stuff I committed for 2.5.3.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Tue, 23 Dec 2008 16:55:49 +0000 |
parents | afee51d10412 |
children | 90227761bc7d bd2f4c6add99 0d7c21b5f1d7 d15b50a4db53 7d6280b006a8 c3e44dae2f65 45434c3fd878 |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Tue Dec 23 16:38:49 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Dec 23 16:55:49 2008 +0000 @@ -151,7 +151,7 @@ char hostname[256]; /* current hostname */ /* Empty resource == don't send any */ - if (*input == '\0') + if (input == NULL || *input == '\0') return NULL; if (strstr(input, "__HOSTNAME__") == NULL)