diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-26 16:35:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-31 23:07:45 +0300 |
commit | f70d54001cd1b975db6f4668a6d54dbae7a8ac92 (patch) | |
tree | 9025875d74dda4dfb6766c555aba04700d8d0423 /src/common | |
parent | 0a9cee0a94185f9fabd8fd615139836a64d369f2 (diff) | |
download | hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.gz hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.bz2 hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.tar.xz hercules-f70d54001cd1b975db6f4668a6d54dbae7a8ac92.zip |
Improve performance a bit by removing strlen(str) > 0.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c index 605256100..ee8ff504a 100644 --- a/src/common/sysinfo.c +++ b/src/common/sysinfo.c @@ -594,7 +594,7 @@ void sysinfo_osversion_retrieve(void) { // Include service pack (if any) and build number. - if (strlen(osvi.szCSDVersion) > 0) { + if (osvi.szCSDVersion[0] != '\0') { StrBuf->Printf(&buf, " %s", osvi.szCSDVersion); } |