summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_http.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-05-01 18:34:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-05-01 18:34:53 +0300
commit1cd75c5336a5ecdea2003bd45fb1875f021b1c6b (patch)
treeb5d97ae736f97edaf1705e3a293ea709266593c7 /protocols/Weather/src/weather_http.cpp
parentc39c8e1373abf80a88c943d657119081a3d07c89 (diff)
mode code cleaning
Diffstat (limited to 'protocols/Weather/src/weather_http.cpp')
-rw-r--r--protocols/Weather/src/weather_http.cpp8
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;