diff options
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; |