[vlc-devel] commit: Fix cache save submodule recursion ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Sep 25 17:16:12 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Sep 25 18:19:32 2008 +0300| [631991de20a3847b6af56ee48a467f75a13df751] | committer: Rémi Denis-Courmont
Fix cache save submodule recursion
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=631991de20a3847b6af56ee48a467f75a13df751
---
src/modules/cache.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/modules/cache.c b/src/modules/cache.c
index a917a9a..570ad8c 100644
--- 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 );
More information about the vlc-devel
mailing list