[libxml2] Fix a compilation problem with --minimum



commit 0c7109c81f3de1408ddac898bce0aa21823e3507
Author: Brandon Slack <brandon slack gmail com>
Date:   Fri May 11 10:50:59 2012 +0800

    Fix a compilation problem with --minimum
    
    For https://bugzilla.gnome.org/show_bug.cgi?id=636750
    Moved a #endif /* LIBXML_OUTPUT_ENABLED */ a few lines down
    to avoid reference an undefined variable

 xmllint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 3ca8077..40a2194 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3365,11 +3365,11 @@ main(int argc, char **argv) {
 	     i++;
 #ifdef LIBXML_OUTPUT_ENABLED
 	     format = atoi(argv[i]);
-#endif /* LIBXML_OUTPUT_ENABLED */
 	     if (format == 1) {
 	         noblanks++;
 	         xmlKeepBlanksDefault(0);
 	     }
+#endif /* LIBXML_OUTPUT_ENABLED */
 	}
 #ifdef LIBXML_READER_ENABLED
 	else if ((!strcmp(argv[i], "-stream")) ||



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]