pidgin: c06356e8: Slightly modified version of a fix fquez...

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Tue Dec 23 12:01:43 EST 2008


-----------------------------------------------------------------
Revision: c06356e8e8d2c586f0192a5564053c2584020da8
Ancestor: 220408973665ed57ad3d119b5d4723d8704df732
Author: rekkanoryo at pidgin.im
Date: 2008-12-23T16:55:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c06356e8e8d2c586f0192a5564053c2584020da8

Modified files:
        libpurple/protocols/jabber/jabber.c

ChangeLog: 

Slightly modified version of a fix fqueze proposed for a crash with the empty
resource stuff I committed for 2.5.3.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	851fc11708d9b1cbdea9a9796a0e5fd274d9c9bf
+++ libpurple/protocols/jabber/jabber.c	e004c14130d978423118554b6378cacb600f76ec
@@ -151,7 +151,7 @@ static char *jabber_prep_resource(char *
 	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)


More information about the Commits mailing list