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:
5af8cc2
)
Fix cache save submodule recursion
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Thu, 25 Sep 2008 15:19:32 +0000
(18:19 +0300)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Thu, 25 Sep 2008 15:19:32 +0000
(18:19 +0300)
src/modules/cache.c
patch
|
blob
|
history
diff --git
a/src/modules/cache.c
b/src/modules/cache.c
index
a917a9a
..
570ad8c
100644
(file)
--- a/
src/modules/cache.c
+++ b/
src/modules/cache.c
@@
-616,7
+616,9
@@
error:
static int CacheSaveSubmodule( FILE *file, module_t *p_module )
{
- if( p_module->next && CacheSaveSubmodule( file, p_module->next ) )
+ if( !p_module )
+ return 0;
+ if( CacheSaveSubmodule( file, p_module->next ) )
goto error;
SAVE_STRING( p_module->psz_object_name );