mirror of
https://github.com/mirror/wget.git
synced 2025-02-11 20:30:45 +08:00
remote_to_utf8: cut off part of condition always false
A signed char is never larger than 127.
This commit is contained in:
parent
bc75d2ecdf
commit
1553c70961
@ -1,3 +1,7 @@
|
|||||||
|
2014-11-21 Daniel Stenberg <daniel@haxx.se>
|
||||||
|
|
||||||
|
* iri.c (remote_to_utf8): Remove condition that is always false
|
||||||
|
|
||||||
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
|
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR
|
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* IRI related functions.
|
/* IRI related functions.
|
||||||
Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
|
Copyright (C) 2008, 2009, 2010, 2011, 2014 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Wget.
|
This file is part of GNU Wget.
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
|
|||||||
{
|
{
|
||||||
const char *p = str;
|
const char *p = str;
|
||||||
for (p = str; *p; p++)
|
for (p = str; *p; p++)
|
||||||
if (*p < 0 || *p > 127)
|
if (*p < 0)
|
||||||
{
|
{
|
||||||
*new = strdup (str);
|
*new = strdup (str);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user