mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
resolve trivial coverity finding:
Assigning value 3000U to info->OsType here, but that stored value is overwritten before it can be used.
This commit is contained in:
parent
1c0b961aa5
commit
4b08ce9172
@ -1111,27 +1111,20 @@ void UnixGetOsInfo(OS_INFO *info)
|
||||
}
|
||||
|
||||
Zero(info, sizeof(OS_INFO));
|
||||
info->OsType = OSTYPE_UNIX_UNKNOWN;
|
||||
|
||||
#ifdef UNIX_SOLARIS
|
||||
info->OsType = OSTYPE_SOLARIS;
|
||||
#endif // UNIX_SOLARIS
|
||||
|
||||
#ifdef UNIX_CYGWIN
|
||||
#elif UNIX_CYGWIN
|
||||
info->OsType = OSTYPE_CYGWIN;
|
||||
#endif // UNIX_CYGWIN
|
||||
|
||||
#ifdef UNIX_MACOS
|
||||
#elif UNIX_MACOS
|
||||
info->OsType = OSTYPE_MACOS_X;
|
||||
#endif // UNIX_MACOS
|
||||
|
||||
#ifdef UNIX_BSD
|
||||
#elif UNIX_BSD
|
||||
info->OsType = OSTYPE_BSD;
|
||||
#endif // UNIX_BSD
|
||||
|
||||
#ifdef UNIX_LINUX
|
||||
#elif UNIX_LINUX
|
||||
info->OsType = OSTYPE_LINUX;
|
||||
#endif // UNIX_LINUX
|
||||
#else
|
||||
info->OsType = OSTYPE_UNIX_UNKNOWN;
|
||||
#endif
|
||||
|
||||
info->OsServicePack = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user