summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-11-02 14:52:23 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-11-02 14:52:23 +0000
commit36e5cd5064d3477a0500f6183d68b18b7493568a (patch)
tree95d13002a3bca1191e1328de0739dacbb15835ee /nanoftp.c
parent032268145fad72bbf00c944c1f6a067e5da4a1e0 (diff)
downloadlibxml2-36e5cd5064d3477a0500f6183d68b18b7493568a.tar.gz
adding xmlMemBlocks() work on generator of an automatic API regression
* xmlmemory.c include/libxml/xmlmemory.h: adding xmlMemBlocks() * Makefile.am gentest.py testapi.c: work on generator of an automatic API regression test tool. * SAX2.c nanoftp.c parser.c parserInternals.c tree.c xmlIO.c xmlstring.c: various API hardeing changes as a result of running teh first set of automatic API regression tests. * test/slashdot16.xml: apparently missing from CVS, commited it Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/nanoftp.c b/nanoftp.c
index 16e6242f..30d143ff 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -260,12 +260,18 @@ xmlNanoFTPCleanup(void) {
void
xmlNanoFTPProxy(const char *host, int port, const char *user,
const char *passwd, int type) {
- if (proxy != NULL)
+ if (proxy != NULL) {
xmlFree(proxy);
- if (proxyUser != NULL)
+ proxy = NULL;
+ }
+ if (proxyUser != NULL) {
xmlFree(proxyUser);
- if (proxyPasswd != NULL)
+ proxyUser = NULL;
+ }
+ if (proxyPasswd != NULL) {
xmlFree(proxyPasswd);
+ proxyPasswd = NULL;
+ }
if (host)
proxy = xmlMemStrdup(host);
if (user)