[libxml2] Avoid a deadcode in catalog.c



commit b8bdc258dec460c0d07b50223792e26bc78b2f2d
Author: Daniel Veillard <veillard redhat com>
Date:   Mon Sep 30 11:12:04 2013 +0800

    Avoid a deadcode in catalog.c
    
    For https://bugzilla.gnome.org/show_bug.cgi?id=703504

 catalog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/catalog.c b/catalog.c
index 8e34cd2..549e592 100644
--- a/catalog.c
+++ b/catalog.c
@@ -3550,8 +3550,8 @@ xmlCatalogSetDefaultPrefer(xmlCatalogPrefer prefer) {
                xmlGenericError(xmlGenericErrorContext,
                        "Setting catalog preference to SYSTEM\n");
                break;
-           case XML_CATA_PREFER_NONE:
-               break;
+           default:
+               return(ret);
        }
     }
     xmlCatalogDefaultPrefer = prefer;


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