mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
convert: initialize variable before usage.
This commit is contained in:
parent
e2c8436e17
commit
416d0e892c
@ -1,3 +1,7 @@
|
|||||||
|
2014-06-30 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
|
* convert.c (local_quote_string): Initialize newname.
|
||||||
|
|
||||||
2014-06-29 Giuseppe Scrivano <gscrivan@redhat.com>
|
2014-06-29 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
* warc.c (warc_write_date_header): Avoid out-of-scope variable usage.
|
* warc.c (warc_write_date_header): Avoid out-of-scope variable usage.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Conversion of links to local files.
|
/* Conversion of links to local files.
|
||||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GNU Wget.
|
This file is part of GNU Wget.
|
||||||
@ -626,6 +626,7 @@ local_quote_string (const char *file, bool no_html_quote)
|
|||||||
/* Allocate space assuming the worst-case scenario, each character
|
/* Allocate space assuming the worst-case scenario, each character
|
||||||
having to be quoted. */
|
having to be quoted. */
|
||||||
to = newname = (char *)alloca (3 * strlen (file) + 1);
|
to = newname = (char *)alloca (3 * strlen (file) + 1);
|
||||||
|
newname[0] = '\0';
|
||||||
for (from = file; *from; from++)
|
for (from = file; *from; from++)
|
||||||
switch (*from)
|
switch (*from)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user