From c454e37064265c4a7526b0afcf998cb56d649065 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 26 Dec 2022 18:58:03 +0300 Subject: [PATCH] filesystem: allow to init with NULL overrides --- filesystem/filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index a7b22415..43f5350a 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -2731,7 +2731,7 @@ fs_api_t g_api = int EXPORT GetFSAPI( int version, fs_api_t *api, fs_globals_t **globals, fs_interface_t *engfuncs ) { - if( !FS_InitInterface( version, engfuncs )) + if( engfuncs && !FS_InitInterface( version, engfuncs )) return 0; memcpy( api, &g_api, sizeof( *api ));