From 9a9735aeeaa371f7a1501d28a702cc56e4c1bfa0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 May 2022 21:42:20 +0300 Subject: fix for wrongly placed brackets *sigh* --- src/mir_app/src/netlib_http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir_app/src/netlib_http.cpp b/src/mir_app/src/netlib_http.cpp index c0cacadb82..a93caf7116 100644 --- a/src/mir_app/src/netlib_http.cpp +++ b/src/mir_app/src/netlib_http.cpp @@ -156,7 +156,7 @@ void NetlibConnFromUrl(const char *szUrl, bool secur, NetlibUrl &url) if (idx != -1) url.szHost.Truncate(idx); - if ((idx = url.szHost.Find(':') != -1)) { + if ((idx = url.szHost.Find(':')) != -1) { url.port = strtol(url.szHost.c_str() + idx + 1, nullptr, 10); url.szHost.Truncate(idx); } -- cgit v1.2.3