apply fixes to close #63271 and avoid segfaults when the error routine

* parser.c globals.c DOCBparser.c HTMLparser.c error.c:
  apply fixes to close #63271 and avoid segfaults when
  the error routine gets callbed before xmlInitParser()
  get called.
* nanoftp.c error.c: Applied patches from Justin Fletcher
  correcting some xmlGenericError misuses.
Daniel
diff --git a/globals.c b/globals.c
index cfa5ca6..e5b5bc8 100644
--- a/globals.c
+++ b/globals.c
@@ -117,7 +117,10 @@
 
 /* xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc; */
 /* Must initialize xmlGenericError in xmlInitParser */
-xmlGenericErrorFunc xmlGenericError;
+void xmlGenericErrorDefaultFunc	(void *ctx ATTRIBUTE_UNUSED,
+				 const char *msg,
+				 ...);
+xmlGenericErrorFunc xmlGenericError = xmlGenericErrorDefaultFunc;
 void *xmlGenericErrorContext = NULL;
 
 /*