mirror of
https://github.com/mirror/wget.git
synced 2025-01-07 19:00:30 +08:00
[svn] Place variable declarations in escnonprint_internal before other
statements.
This commit is contained in:
parent
1fab70a664
commit
69e45d2c7c
@ -704,10 +704,11 @@ static const char *
|
|||||||
escnonprint_internal (const char *str, char escape, int base)
|
escnonprint_internal (const char *str, char escape, int base)
|
||||||
{
|
{
|
||||||
static int ringpos; /* current ring position */
|
static int ringpos; /* current ring position */
|
||||||
|
int nprcnt;
|
||||||
|
|
||||||
assert (base == 8 || base == 16);
|
assert (base == 8 || base == 16);
|
||||||
|
|
||||||
int nprcnt = count_nonprint (str);
|
nprcnt = count_nonprint (str);
|
||||||
if (nprcnt == 0)
|
if (nprcnt == 0)
|
||||||
/* If there are no non-printable chars in STR, don't bother
|
/* If there are no non-printable chars in STR, don't bother
|
||||||
copying anything, just return STR. */
|
copying anything, just return STR. */
|
||||||
|
Loading…
Reference in New Issue
Block a user