summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/winsocket.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2012-07-27 15:37:39 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2012-07-27 15:37:39 +0000
commit97dbb9484f6c88379bd0892a02e17023f86d9800 (patch)
treec03d5971ad8f7dcd35785cf02107311e13d3f07e /src/osd/windows/winsocket.c
parentb401946faeee0c3503a467e57d0bc51b06eec6f2 (diff)
removed unnecessary strlen() usage (no whatsnew)
Diffstat (limited to 'src/osd/windows/winsocket.c')
-rw-r--r--src/osd/windows/winsocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/windows/winsocket.c b/src/osd/windows/winsocket.c
index 3e3c87435b1..058488759a3 100644
--- a/src/osd/windows/winsocket.c
+++ b/src/osd/windows/winsocket.c
@@ -60,7 +60,7 @@ void win_cleanup_sockets()
bool win_check_socket_path(const char *path)
{
- if (strlen(winfile_socket_identifier) > 0 &&
+ if (*winfile_socket_identifier != 0 &&
strncmp(path, winfile_socket_identifier, strlen(winfile_socket_identifier)) == 0 &&
strchr(path, ':') != NULL) return true;
return false;