mirror of
https://github.com/mirror/wget.git
synced 2025-01-06 02:10:28 +08:00
[svn] Avoid unneeded initialization of local var.
This commit is contained in:
parent
e3fb2ec5df
commit
3d04bb3a2c
@ -261,7 +261,7 @@ connect_to_ip (const ip_address *ip, int port, const char *print)
|
||||
{
|
||||
struct sockaddr_storage ss;
|
||||
struct sockaddr *sa = (struct sockaddr *)&ss;
|
||||
int sock = -1;
|
||||
int sock;
|
||||
|
||||
/* If PRINT is non-NULL, print the "Connecting to..." line, with
|
||||
PRINT being the host name we're connecting to. */
|
||||
|
@ -202,7 +202,7 @@ convert_links (const char *file, struct urlpos *links)
|
||||
any URL needs to be converted in the first place. If not, just
|
||||
leave the file alone. */
|
||||
int dry_count = 0;
|
||||
struct urlpos *dry = links;
|
||||
struct urlpos *dry;
|
||||
for (dry = links; dry; dry = dry->next)
|
||||
if (dry->convert != CO_NOCONVERT)
|
||||
++dry_count;
|
||||
|
Loading…
Reference in New Issue
Block a user