Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d3ab3afe
Commit
d3ab3afe
authored
Oct 12, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NULL deref (CID#237)
parent
6094cb67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
modules/control/http/macro.c
modules/control/http/macro.c
+9
-17
No files found.
modules/control/http/macro.c
View file @
d3ab3afe
...
...
@@ -338,25 +338,17 @@ static void MacroDo( httpd_file_sys_t *p_args,
p_input
=
MRLParse
(
p_intf
,
mrl
,
psz_name
);
char
*
psz_uri
=
input_item_GetURI
(
p_input
);
if
(
!
p_input
||
!
psz_uri
||
!*
psz_uri
)
{
msg_Dbg
(
p_intf
,
"invalid requested mrl: %s"
,
mrl
);
}
else
{
int
i_ret
=
playlist_AddInput
(
p_sys
->
p_playlist
,
p_input
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
true
,
false
);
vlc_gc_decref
(
p_input
);
if
(
i_ret
==
VLC_SUCCESS
)
char
*
psz_uri
=
p_input
?
input_item_GetURI
(
p_input
)
:
NULL
;
if
(
psz_uri
&&
*
psz_uri
&&
playlist_AddInput
(
p_sys
->
p_playlist
,
p_input
,
PLAYLIST_APPEND
,
PLAYLIST_END
,
true
,
false
)
==
VLC_SUCCESS
)
msg_Dbg
(
p_intf
,
"requested mrl add: %s"
,
mrl
);
else
msg_Warn
(
p_intf
,
"adding mrl %s failed"
,
mrl
);
}
msg_Warn
(
p_intf
,
"adding mrl failed: %s"
,
mrl
);
free
(
psz_uri
);
if
(
p_input
)
vlc_gc_decref
(
p_input
);
break
;
}
case
MVLC_DEL
:
...
...
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