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:
parent
a73fb8c4e7
commit
c3bf75e8e0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user