Missing initialization for the catalog module
Fix an fd leak in an error case
fixing a ptotential uninitialized access
Fix typos in {tree,xpath}.c (errror)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Fix an typo 'onrest' in htmlScriptAttributes

As pointed out by "Laurent <guitarneck@free.fr>"
Fix a portability issue on Windows

Apparently an verflow when comparing macro and unsigned long