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
32c110b6
Commit
32c110b6
authored
Feb 20, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check the return value of vlc_object_create
parent
036d3e3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/misc/update.c
src/misc/update.c
+11
-0
No files found.
src/misc/update.c
View file @
32c110b6
...
@@ -1102,6 +1102,12 @@ void update_Check( update_t *p_update, void (*pf_callback)( void*, vlc_bool_t ),
...
@@ -1102,6 +1102,12 @@ void update_Check( update_t *p_update, void (*pf_callback)( void*, vlc_bool_t ),
update_check_thread_t
*
p_uct
=
vlc_object_create
(
p_update
->
p_libvlc
,
update_check_thread_t
*
p_uct
=
vlc_object_create
(
p_update
->
p_libvlc
,
sizeof
(
update_check_thread_t
)
);
sizeof
(
update_check_thread_t
)
);
if
(
!
p_uct
)
{
msg_Err
(
p_update
->
p_libvlc
,
"out of memory"
);
return
;
}
p_uct
->
p_update
=
p_update
;
p_uct
->
p_update
=
p_update
;
p_uct
->
pf_callback
=
pf_callback
;
p_uct
->
pf_callback
=
pf_callback
;
p_uct
->
p_data
=
p_data
;
p_uct
->
p_data
=
p_data
;
...
@@ -1217,6 +1223,11 @@ void update_Download( update_t *p_update, char *psz_destdir )
...
@@ -1217,6 +1223,11 @@ void update_Download( update_t *p_update, char *psz_destdir )
update_download_thread_t
*
p_udt
=
vlc_object_create
(
p_update
->
p_libvlc
,
update_download_thread_t
*
p_udt
=
vlc_object_create
(
p_update
->
p_libvlc
,
sizeof
(
update_download_thread_t
)
);
sizeof
(
update_download_thread_t
)
);
if
(
!
p_udt
)
{
msg_Err
(
p_update
->
p_libvlc
,
"out of memory"
);
return
;
}
p_udt
->
p_update
=
p_update
;
p_udt
->
p_update
=
p_update
;
p_udt
->
psz_destdir
=
psz_destdir
?
strdup
(
psz_destdir
)
:
NULL
;
p_udt
->
psz_destdir
=
psz_destdir
?
strdup
(
psz_destdir
)
:
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