Commit 631991de authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix cache save submodule recursion

parent 5af8cc2e
...@@ -616,7 +616,9 @@ error: ...@@ -616,7 +616,9 @@ error:
static int CacheSaveSubmodule( FILE *file, module_t *p_module ) 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; goto error;
SAVE_STRING( p_module->psz_object_name ); SAVE_STRING( p_module->psz_object_name );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment