From: hniksic Date: Fri, 2 Feb 2007 09:35:08 +0000 (-0800) Subject: [svn] Fix build problems with DEBUG_MALLOC. X-Git-Tag: v1.13~603 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=a161efc9ec3aaf5d3787f1c7be0653641f9ea1d0 [svn] Fix build problems with DEBUG_MALLOC. --- diff --git a/src/ChangeLog b/src/ChangeLog index a3ca5692..0b36ed45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2007-02-02 Hrvoje Niksic + + * netrc.c: Don't make netrc_list static, as it prevents + compilation with DEBUG_MALLOC. + + * utils.c (aprintf): Don't use vasprintf when DEBUG_MALLOC is + requested because, in that case, we want the calls to malloc to be + coming from us. + 2007-01-23 Hrvoje Niksic * cookies.c (parse_set_cookie): Would erroneously discard cookies diff --git a/src/netrc.c b/src/netrc.c index 48ac0c76..dabcf922 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -46,7 +46,7 @@ so, delete this exception statement from your version. */ #define NETRC_FILE_NAME ".netrc" -static acc_t *netrc_list; +acc_t *netrc_list; static acc_t *parse_netrc (const char *); diff --git a/src/utils.c b/src/utils.c index 7a90c069..60b040b8 100644 --- a/src/utils.c +++ b/src/utils.c @@ -159,7 +159,7 @@ sepstring (const char *s) char * aprintf (const char *fmt, ...) { -#ifdef HAVE_VASPRINTF +#if defined HAVE_VASPRINTF && !defined DEBUG_MALLOC /* Use vasprintf. */ int ret; va_list args;