remote_to_utf8: cut off part of condition always false

A signed char is never larger than 127.
This commit is contained in:
Daniel Stenberg 2014-11-21 09:06:37 +01:00 committed by Darshit Shah
parent bc75d2ecdf
commit 1553c70961
2 changed files with 6 additions and 2 deletions

View File

@ -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>
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR

View File

@ -1,5 +1,5 @@
/* 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.
@ -281,7 +281,7 @@ remote_to_utf8 (struct iri *iri, const char *str, const char **new)
{
const char *p = str;
for (p = str; *p; p++)
if (*p < 0 || *p > 127)
if (*p < 0)
{
*new = strdup (str);
return true;