[libxml2] missing else in xlink.c



commit 33a25af71f78c370850a057f430d874710169a6f
Author: Ami Fischman <fischman google com>
Date:   Tue Jul 2 09:47:26 2013 +0800

    missing else in xlink.c
    
    Obviously forgotten

 xlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xlink.c b/xlink.c
index 3566e06..c0e4ff3 100644
--- a/xlink.c
+++ b/xlink.c
@@ -150,7 +150,7 @@ xlinkIsLink (xmlDocPtr doc, xmlNodePtr node) {
     if (type != NULL) {
        if (xmlStrEqual(type, BAD_CAST "simple")) {
             ret = XLINK_TYPE_SIMPLE;
-       } if (xmlStrEqual(type, BAD_CAST "extended")) {
+       } else if (xmlStrEqual(type, BAD_CAST "extended")) {
            role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE);
            if (role != NULL) {
                xmlNsPtr xlink;


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