pidgin: 5d5313fd: Return FALSE from purple_url_parse() if ...

evands at pidgin.im evands at pidgin.im
Tue Aug 26 23:10:40 EDT 2008


-----------------------------------------------------------------
Revision: 5d5313fdfd6fdadba37ba06101fff9174cb2e568
Ancestor: 50be1dba5568bb36004d300f202b0dd3af444053
Author: evands at pidgin.im
Date: 2008-08-27T03:04:15
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5d5313fdfd6fdadba37ba06101fff9174cb2e568

Modified files:
        libpurple/util.c

ChangeLog: 

Return FALSE from purple_url_parse() if a host could not be determined

-------------- next part --------------
============================================================
--- libpurple/util.c	f988f5485bc14ebded5f981d20b14d2c585375fd
+++ libpurple/util.c	1bc45a5bbb84002c64cd48abf2990121e422e4da
@@ -3592,7 +3592,7 @@ purple_url_parse(const char *url, char *
 	if (ret_user != NULL) *ret_user = g_strdup(user);
 	if (ret_passwd != NULL) *ret_passwd = g_strdup(passwd);
 
-	return TRUE;
+	return ((*host != '\0') ? TRUE : FALSE);
 }
 
 /**


More information about the Commits mailing list