mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix compiler warning in src/iri.c
This commit is contained in:
parent
00203b2888
commit
09d47ead18
@ -1,3 +1,7 @@
|
||||
2014-11-21 Daniel Stenberg <daniel@haxx.se>
|
||||
|
||||
* iri.c (remote_to_utf8): Fix compiler warning
|
||||
|
||||
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR
|
||||
|
@ -279,9 +279,9 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
|
||||
function. */
|
||||
if (!c_strcasecmp (iri->uri_encoding, "UTF-8"))
|
||||
{
|
||||
const char *p = str;
|
||||
for (p = str; *p; p++)
|
||||
if (*p < 0 || *p > 127)
|
||||
const unsigned char *p;
|
||||
for (p = (unsigned char *) str; *p; p++)
|
||||
if (*p > 127)
|
||||
{
|
||||
*new = strdup (str);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user