1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

src/Mayaqua/Network.c: refactor code to eliminate coverity issue

This commit is contained in:
Ilya Shipitsin 2018-08-11 21:49:02 +02:00 committed by Davide Beatrici
parent a73fb8c4e7
commit c3bf75e8e0

View File

@ -663,17 +663,15 @@ LIST *GetNicList()
#ifdef OS_WIN32 #ifdef OS_WIN32
o = Win32GetNicList(); o = Win32GetNicList();
#endif // OS_WIN32
#ifdef UNIX_LINUX if (o != NULL)
#endif // UNIX_LINUX
if (o == NULL)
{ {
return NewListFast(NULL); return o;
} }
return o; #endif // OS_WIN32
return NewListFast(NULL);
} }
#ifdef OS_WIN32 #ifdef OS_WIN32