git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1957d
)
Fix potential segfault
author
Jean-Paul Saman
<jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:59 +0000
(15:07 +0000)
committer
Jean-Paul Saman
<jpsaman@videolan.org>
Fri, 26 Oct 2007 15:07:59 +0000
(15:07 +0000)
src/misc/update.c
patch
|
blob
|
history
diff --git
a/src/misc/update.c
b/src/misc/update.c
index
be8de63
..
533ff2e
100644
(file)
--- a/
src/misc/update.c
+++ b/
src/misc/update.c
@@
-119,6
+119,7
@@
update_t *__update_New( vlc_object_t *p_this )
if( p_this == NULL ) return NULL;
p_update = (update_t *)malloc( sizeof( update_t ) );
+ if( !p_update ) return NULL;
vlc_mutex_init( p_this, &p_update->lock );