From f70d54001cd1b975db6f4668a6d54dbae7a8ac92 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Dec 2014 16:35:12 +0300 Subject: Improve performance a bit by removing strlen(str) > 0. --- src/common/sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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); } -- cgit v1.2.3-70-g09d2