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

This commit is contained in:
Ilya Shipitsin authored and Davide Beatrici committed 2018-08-11 21:49:20 +02:00
1 parent a73fb8c4e7
commit c3bf75e8e0
1 file changed
+5 -7
+5 -7
View File
@@ -663,17 +663,15 @@ LIST *GetNicList()
#ifdef OS_WIN32
o = Win32GetNicList();
#endif // OS_WIN32
#ifdef UNIX_LINUX
#endif // UNIX_LINUX
if (o == NULL)
if (o != NULL)
{
return NewListFast(NULL);
return o;
}
return o;
#endif // OS_WIN32
return NewListFast(NULL);
}
#ifdef OS_WIN32