Mercurial > libavformat.hg
diff utils.c @ 6147:3877522243ec libavformat
ff_url_join: Don't add any at-char if the auth is an empty string
author | mstorsjo |
---|---|
date | Sat, 19 Jun 2010 21:56:50 +0000 |
parents | 4040ce73a1ed |
children | 4d1d3e0ba6d7 |
line wrap: on
line diff
--- a/utils.c Sat Jun 19 21:46:39 2010 +0000 +++ b/utils.c Sat Jun 19 21:56:50 2010 +0000 @@ -3601,7 +3601,7 @@ str[0] = '\0'; if (proto) av_strlcatf(str, size, "%s://", proto); - if (authorization) + if (authorization && authorization[0]) av_strlcatf(str, size, "%s@", authorization); #if CONFIG_NETWORK && defined(AF_INET6) /* Determine if hostname is a numerical IPv6 address,