mirror of
https://github.com/mirror/wget.git
synced 2025-01-07 19:00:30 +08:00
[svn] Remove unnecessary assignments to silence warnings from Borland C.
This commit is contained in:
parent
69e45d2c7c
commit
0b49b79bb7
@ -1,3 +1,17 @@
|
|||||||
|
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* netrc.c (parse_netrc): Explicitly check for assignment != NULL
|
||||||
|
to silence warning from Borland C.
|
||||||
|
|
||||||
|
* url.c (sync_path): Don't unnecessarily increment p.
|
||||||
|
(url_parse): Don't unnecessarily set url_encode to NULL just
|
||||||
|
prior to return from the function.
|
||||||
|
|
||||||
|
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* log.c (escnonprint_internal): Place variable declarations
|
||||||
|
before other statements.
|
||||||
|
|
||||||
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-05-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* html-url.c: Include recur.h.
|
* html-url.c: Include recur.h.
|
||||||
|
@ -284,7 +284,7 @@ parse_netrc (const char *path)
|
|||||||
premature_token = NULL;
|
premature_token = NULL;
|
||||||
|
|
||||||
/* While there are lines in the file... */
|
/* While there are lines in the file... */
|
||||||
while ((line = read_whole_line (fp)))
|
while ((line = read_whole_line (fp)) != NULL)
|
||||||
{
|
{
|
||||||
ln ++;
|
ln ++;
|
||||||
|
|
||||||
|
@ -874,7 +874,6 @@ url_parse (const char *url, int *error)
|
|||||||
else
|
else
|
||||||
u->url = url_encoded;
|
u->url = url_encoded;
|
||||||
}
|
}
|
||||||
url_encoded = NULL;
|
|
||||||
|
|
||||||
return u;
|
return u;
|
||||||
|
|
||||||
@ -1067,7 +1066,7 @@ sync_path (struct url *u)
|
|||||||
*p++ = '/';
|
*p++ = '/';
|
||||||
memcpy (p, efile, filelen);
|
memcpy (p, efile, filelen);
|
||||||
p += filelen;
|
p += filelen;
|
||||||
*p++ = '\0';
|
*p = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
u->path = newpath;
|
u->path = newpath;
|
||||||
|
Loading…
Reference in New Issue
Block a user