changeset 23913:58e3b422e595

Return FALSE from purple_url_parse() if a host could not be determined
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 27 Aug 2008 03:04:15 +0000
parents 7fbc99a1481d
children 62387da2a57f
files libpurple/util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Wed Aug 27 02:54:59 2008 +0000
+++ b/libpurple/util.c	Wed Aug 27 03:04:15 2008 +0000
@@ -3592,7 +3592,7 @@
 	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);
 }
 
 /**