Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6146:9f9a4be98cfb | 6147:3877522243ec |
---|---|
3599 #endif | 3599 #endif |
3600 | 3600 |
3601 str[0] = '\0'; | 3601 str[0] = '\0'; |
3602 if (proto) | 3602 if (proto) |
3603 av_strlcatf(str, size, "%s://", proto); | 3603 av_strlcatf(str, size, "%s://", proto); |
3604 if (authorization) | 3604 if (authorization && authorization[0]) |
3605 av_strlcatf(str, size, "%s@", authorization); | 3605 av_strlcatf(str, size, "%s@", authorization); |
3606 #if CONFIG_NETWORK && defined(AF_INET6) | 3606 #if CONFIG_NETWORK && defined(AF_INET6) |
3607 /* Determine if hostname is a numerical IPv6 address, | 3607 /* Determine if hostname is a numerical IPv6 address, |
3608 * properly escape it within [] in that case. */ | 3608 * properly escape it within [] in that case. */ |
3609 memset(&hints, 0, sizeof(hints)); | 3609 memset(&hints, 0, sizeof(hints)); |