Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
992e35f1
Commit
992e35f1
authored
May 01, 2008
by
Rémi Denis-Courmont
Browse files
Use malloc(1) as cookie rather than malloc(0)
malloc(0) can legally be NULL (or not unique).
parent
78880d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/dummy.c
View file @
992e35f1
...
...
@@ -80,7 +80,7 @@ static void Close( vlc_object_t * p_this )
static
sout_stream_id_t
*
Add
(
sout_stream_t
*
p_stream
,
es_format_t
*
p_fmt
)
{
VLC_UNUSED
(
p_stream
);
VLC_UNUSED
(
p_fmt
);
return
malloc
(
0
);
return
malloc
(
1
);
}
static
int
Del
(
sout_stream_t
*
p_stream
,
sout_stream_id_t
*
id
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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