diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-01 18:34:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-01 18:34:53 +0300 |
commit | 1cd75c5336a5ecdea2003bd45fb1875f021b1c6b (patch) | |
tree | b5d97ae736f97edaf1705e3a293ea709266593c7 /protocols/Weather/src/weather_http.cpp | |
parent | c39c8e1373abf80a88c943d657119081a3d07c89 (diff) |
mode code cleaning
Diffstat (limited to 'protocols/Weather/src/weather_http.cpp')
-rw-r--r-- | protocols/Weather/src/weather_http.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Weather/src/weather_http.cpp b/protocols/Weather/src/weather_http.cpp index b6e4edfa75..2f09c46acc 100644 --- a/protocols/Weather/src/weather_http.cpp +++ b/protocols/Weather/src/weather_http.cpp @@ -89,12 +89,10 @@ int InternetDownloadFile(char *szUrl, char *cookie, char *userAgent, wchar_t **s while (end) { // look for // <meta http-equiv="Content-Type" content="utf-8" /> - char* beg = strstr(end, "<meta"); - if (beg) - { + char *beg = strstr(end, "<meta"); + if (beg) { end = strchr(beg, '>'); - if (end) - { + if (end) { char tmp = *end; *end = 0; |