diff options
author | Akira TAGOH <akira@tagoh.org> | 2015-11-10 17:36:14 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2015-11-10 17:36:14 +0900 |
commit | 68d6e786e7a34f8e22dcbb3e4bc1dbdbc61dedfe (patch) | |
tree | 9b01dbb87599438a8c963169715656eb7f242e8f | |
parent | f1d53ff8daa8b95521528efc8aeb9ea796b606de (diff) |
Fix unknown node issue
-rw-r--r-- | liblangtag/lt-extlang-db.c | 3 | ||||
-rw-r--r-- | liblangtag/lt-grandfathered-db.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/liblangtag/lt-extlang-db.c b/liblangtag/lt-extlang-db.c index a99592e..ce8acda 100644 --- a/liblangtag/lt-extlang-db.c +++ b/liblangtag/lt-extlang-db.c @@ -98,7 +98,8 @@ lt_extlang_db_parse(lt_extlang_db_t *extlangdb, subtag = xmlNodeGetContent(cnode); } } else if (xmlStrcmp(cnode->name, (const xmlChar *)"added") == 0 || - xmlStrcmp(cnode->name, (const xmlChar *)"text") == 0) { + xmlStrcmp(cnode->name, (const xmlChar *)"text") == 0 || + xmlStrcmp(cnode->name, (const xmlChar *)"deprecated") == 0) { /* ignore it */ } else if (xmlStrcmp(cnode->name, (const xmlChar *)"description") == 0) { /* wonder if many descriptions helps something. or is it a bug? */ diff --git a/liblangtag/lt-grandfathered-db.c b/liblangtag/lt-grandfathered-db.c index 704ec46..ffc2ca1 100644 --- a/liblangtag/lt-grandfathered-db.c +++ b/liblangtag/lt-grandfathered-db.c @@ -99,7 +99,8 @@ lt_grandfathered_db_parse(lt_grandfathered_db_t *grandfathereddb, } } else if (xmlStrcmp(cnode->name, (const xmlChar *)"added") == 0 || xmlStrcmp(cnode->name, (const xmlChar *)"text") == 0 || - xmlStrcmp(cnode->name, (const xmlChar *)"deprecated") == 0) { + xmlStrcmp(cnode->name, (const xmlChar *)"deprecated") == 0 || + xmlStrcmp(cnode->name, (const xmlChar *)"comments") == 0) { /* ignore it */ } else if (xmlStrcmp(cnode->name, (const xmlChar *)"description") == 0) { /* wonder if many descriptions helps something. or is it a bug? */ |