[libxml2] Wrong block opening in htmlNodeDumpOutputInternal



commit 141ebfa0282652910bc89f2f106eca408c03bd06
Author: Daniel Veillard <veillard redhat com>
Date:   Wed Sep 2 14:58:13 2009 +0200

    Wrong block opening in htmlNodeDumpOutputInternal
    
    * xmlsave.c: Jim Meyering ran clang on libxml2 and this is one of
      the error found, misplaced curly brace

 xmlsave.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xmlsave.c b/xmlsave.c
index 53b23e6..c2760a8 100644
--- a/xmlsave.c
+++ b/xmlsave.c
@@ -690,8 +690,8 @@ htmlNodeDumpOutputInternal(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
 
     xmlInitParser();
 
-    doc = cur->doc; {
-    if (doc != NULL)
+    doc = cur->doc;
+    if (doc != NULL) {
         oldenc = doc->encoding;
 	if (ctxt->encoding != NULL) {
 	    doc->encoding = BAD_CAST ctxt->encoding;



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