Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 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 | 0700833f0c5d |
children | 3a4070656d61 d15b50a4db53 43b721aa4b76 c3e44dae2f65 45434c3fd878 |
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)