filesystem: replace same struct type memcpys by assignments

This commit is contained in:
Alibek Omarov
2024-07-31 00:02:45 +03:00
parent f6fa085fe4
commit 274f9d5846
2 changed files with 3 additions and 3 deletions

View File

@@ -531,9 +531,9 @@ extern "C" void EXPORT *CreateInterface( const char *interface, int *retval )
if( !Q_strcmp( interface, FS_API_CREATEINTERFACE_TAG ))
{
static fs_api_t copy = { 0 }; // return a copy, to disallow overriding
static fs_api_t copy; // return a copy, to disallow overriding
memcpy( &copy, &g_api, sizeof( copy ));
copy = g_api;
if( retval )
*retval = 0;