--- a/libpurple/protocols/jabber/jabber.c Mon Dec 22 11:24:17 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Dec 23 20:12:07 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)