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/HTMLparser.c b/HTMLparser.c
index 0b9061d..da4666c 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -3747,6 +3747,7 @@
     ctxt->myDoc = NULL;
     ctxt->wellFormed = 1;
     ctxt->replaceEntities = 0;
+    ctxt->linenumbers = xmlLineNumbersDefaultValue;
     ctxt->html = 1;
     ctxt->record_info = 0;
     ctxt->validate = 0;