Skip to content

Commit

Permalink
Resolve clang warning in hsSystemInfo
Browse files Browse the repository at this point in the history
The address of the string will never be falsey, so we only need to check
if the first character of the string is not \0.
  • Loading branch information
dpogue committed Sep 9, 2023
1 parent a800a8e commit 5ea30eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Plasma/CoreLib/hsSystemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static inline bool IGetWindowsVersion(const RTL_OSVERSIONINFOEXW& info, ST::stri
if (info.wProductType == VER_NT_WORKSTATION)
ss << "Professional ";

if (info.szCSDVersion && *info.szCSDVersion)
if (info.szCSDVersion[0])
ss << info.szCSDVersion << ' ';

ss << "(Build " << info.dwBuildNumber << ')';
Expand Down

0 comments on commit 5ea30eb

Please sign in to comment.