diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-11-02 14:52:23 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-11-02 14:52:23 +0000 |
commit | 36e5cd5064d3477a0500f6183d68b18b7493568a (patch) | |
tree | 95d13002a3bca1191e1328de0739dacbb15835ee /nanoftp.c | |
parent | 032268145fad72bbf00c944c1f6a067e5da4a1e0 (diff) | |
download | libxml2-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.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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) |