fix bug #66816 when validating. don't use sys/time.h if configure did not
* valid.c: fix bug #66816 when validating.
* xmllint.c: don't use sys/time.h if configure did not found it
Daniel
diff --git a/ChangeLog b/ChangeLog
index 12e67e8..73f138f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 13 09:44:58 CET 2001 Daniel Veillard <daniel@veillard.com>
+
+ * valid.c: fix bug #66816 when validating.
+ * xmllint.c: don't use sys/time.h if configure did not found it
+
Mon Dec 10 21:39:55 MST 2001 John Fleck <jfleck@inkstain.net>
* docs/xmllint.1, xmllint.xml, xmlcatalog.1, xmlcatalog_man.html,
diff --git a/valid.c b/valid.c
index 69584d3..ad22408 100644
--- a/valid.c
+++ b/valid.c
@@ -3938,6 +3938,7 @@
tmp->name = cur->name;
tmp->ns = cur->ns;
tmp->next = NULL;
+ tmp->content = NULL;
if (repl == NULL)
repl = last = tmp;
else {
diff --git a/xmllint.c b/xmllint.c
index da8939d..f2a1312 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -20,7 +20,9 @@
#include <sys/time.h>
#endif /* _MSC_VER */
#else /* _WIN32 */
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#endif /* _WIN32 */