X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fftp.c;h=1dbc1d00c094ad168b2cc4acdc41c64ebc782ffd;hp=69065490dda04d65cad29be4d108fd743a389094;hb=e2e9b753e47efb8f228b9b14f04f307e4f2489b3;hpb=3e207912bd72a55ee05e127a2f5ee4836099fa24 diff --git a/src/ftp.c b/src/ftp.c index 69065490..1dbc1d00 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -54,6 +54,7 @@ so, delete this exception statement from your version. */ #include "host.h" #include "netrc.h" #include "convert.h" /* for downloaded_file */ +#include "recur.h" /* for INFINITE_RECURSION */ #ifndef errno extern int errno; @@ -416,7 +417,7 @@ Error in server response, closing control connection.\n")); break; case FTPSRVERR : /* PWD unsupported -- assume "/". */ - FREE_MAYBE (con->id); + xfree_null (con->id); con->id = xstrdup ("/"); break; case FTPOK: @@ -1924,9 +1925,9 @@ ftp_loop (struct url *u, int *dt, struct url *proxy) /* If a connection was left, quench it. */ if (rbuf_initialized_p (&con.rbuf)) CLOSE (RBUF_FD (&con.rbuf)); - FREE_MAYBE (con.id); + xfree_null (con.id); con.id = NULL; - FREE_MAYBE (con.target); + xfree_null (con.target); con.target = NULL; return res; } @@ -1941,7 +1942,7 @@ delelement (struct fileinfo *f, struct fileinfo **start) struct fileinfo *next = f->next; xfree (f->name); - FREE_MAYBE (f->linkto); + xfree_null (f->linkto); xfree (f); if (next)