(trunk gtk) more heap pruning: avoid unnecessary malloc() + free() calls in gtr_get_host_from_url()

This commit is contained in:
Jordan Lee
2011-04-04 16:54:09 +00:00
parent 94e11008b9
commit d233ea82e7
4 changed files with 17 additions and 19 deletions

View File

@@ -68,7 +68,7 @@ char* tr_strltime( char * buf, int secs, size_t buflen );
***/
/* http://www.legaltorrents.com/some/announce/url --> legaltorrents.com */
char* gtr_get_host_from_url( const char * url );
void gtr_get_host_from_url( char * buf, size_t buflen, const char * url );
gboolean gtr_is_supported_url( const char * str );