diff options
author | George Hazan <ghazan@miranda.im> | 2022-05-19 21:42:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-05-19 21:42:20 +0300 |
commit | 9a9735aeeaa371f7a1501d28a702cc56e4c1bfa0 (patch) | |
tree | 9a05c5bbb1ae6ac7d945fefa7463cf4737f4f589 | |
parent | d61c302ae18d9c20ddbcfaa2f24db2ac01cc07fe (diff) |
fix for wrongly placed brackets *sigh*
-rw-r--r-- | src/mir_app/src/netlib_http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |