comparison libpurple/util.c @ 23983: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 fa39c801167d e0a596a0a020
comparison
equal deleted inserted replaced
23982:7fbc99a1481d 23983:58e3b422e595
3590 if (ret_port != NULL) *ret_port = port; 3590 if (ret_port != NULL) *ret_port = port;
3591 if (ret_path != NULL) *ret_path = g_strdup(path); 3591 if (ret_path != NULL) *ret_path = g_strdup(path);
3592 if (ret_user != NULL) *ret_user = g_strdup(user); 3592 if (ret_user != NULL) *ret_user = g_strdup(user);
3593 if (ret_passwd != NULL) *ret_passwd = g_strdup(passwd); 3593 if (ret_passwd != NULL) *ret_passwd = g_strdup(passwd);
3594 3594
3595 return TRUE; 3595 return ((*host != '\0') ? TRUE : FALSE);
3596 } 3596 }
3597 3597
3598 /** 3598 /**
3599 * The arguments to this function are similar to printf. 3599 * The arguments to this function are similar to printf.
3600 */ 3600 */