libpurple/protocols/jabber/jabber.c

branch
cpw.malu.xmpp.idle
changeset 25491
c82cbb24c0e9
parent 25490
503eb23bc586
parent 25304
75bdc442f70c
child 25497
c3eccf04560f
--- 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)

mercurial