Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7f952008
Commit
7f952008
authored
Jun 25, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unbreak previous commit - I was a bit too optimistic
parent
295d0b3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
include/network.h
include/network.h
+2
-1
No files found.
include/network.h
View file @
7f952008
...
@@ -125,7 +125,7 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
...
@@ -125,7 +125,7 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
char
*
p2
;
char
*
p2
;
/* We have a host[:port] */
/* We have a host[:port] */
url
->
psz_host
=
psz_parse
;
url
->
psz_host
=
strdup
(
psz_parse
)
;
if
(
p
)
if
(
p
)
{
{
url
->
psz_host
[
p
-
psz_parse
]
=
'\0'
;
url
->
psz_host
[
p
-
psz_parse
]
=
'\0'
;
...
@@ -176,6 +176,7 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
...
@@ -176,6 +176,7 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
static
inline
void
vlc_UrlClean
(
vlc_url_t
*
url
)
static
inline
void
vlc_UrlClean
(
vlc_url_t
*
url
)
{
{
if
(
url
->
psz_buffer
)
free
(
url
->
psz_buffer
);
if
(
url
->
psz_buffer
)
free
(
url
->
psz_buffer
);
if
(
url
->
psz_host
)
free
(
url
->
psz_host
);
url
->
psz_protocol
=
NULL
;
url
->
psz_protocol
=
NULL
;
url
->
psz_username
=
NULL
;
url
->
psz_username
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment