<
200106131813.f5DIDss1294858@alderaan.gsfc.nasa.gov>.
It fixes a memory leak in url_equal, and comments it out,
as it's unused.
+2001-06-08 Edward J. Sabol <sabol@alderaan.gsfc.nasa.gov>
+
+ * url.c (url_equal): Fix a memory leak when parseurl returns an
+ error on the second URL. Also, since url_equal is not used at the
+ moment, do not compile it.
+
+ * url.h: Ditto for the prototype of url_equal.
+
2001-11-16 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (map_html_tags): Support XML-style empty tags.
2001-11-16 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (map_html_tags): Support XML-style empty tags.
Returns 1 if the URL1 is equivalent to URL2, 0 otherwise. Also
return 0 on error. */
Returns 1 if the URL1 is equivalent to URL2, 0 otherwise. Also
return 0 on error. */
+/* Do not compile unused code. */
+#if 0
int
url_equal (const char *url1, const char *url2)
{
int
url_equal (const char *url1, const char *url2)
{
err = parseurl (url2, u2, 0);
if (err != URLOK)
{
err = parseurl (url2, u2, 0);
if (err != URLOK)
{
freeurl (u2, 1);
return 0;
}
freeurl (u2, 1);
return 0;
}
freeurl (u2, 1);
return res;
}
freeurl (u2, 1);
return res;
}
\f
urlpos *
get_urls_file (const char *file)
\f
urlpos *
get_urls_file (const char *file)
uerr_t parseurl PARAMS ((const char *, struct urlinfo *, int));
char *str_url PARAMS ((const struct urlinfo *, int));
uerr_t parseurl PARAMS ((const char *, struct urlinfo *, int));
char *str_url PARAMS ((const struct urlinfo *, int));
+/* url_equal is not currently used. */
+#if 0
int url_equal PARAMS ((const char *, const char *));
int url_equal PARAMS ((const char *, const char *));
urlpos *get_urls_file PARAMS ((const char *));
urlpos *get_urls_html PARAMS ((const char *, const char *, int, int *));
urlpos *get_urls_file PARAMS ((const char *));
urlpos *get_urls_html PARAMS ((const char *, const char *, int, int *));