Fix tpk parser bug 37/36837/2
authorYoumin Ha <youmin.ha@samsung.com>
Mon, 16 Mar 2015 08:29:46 +0000 (17:29 +0900)
committerPawel Sikorski <p.sikorski@samsung.com>
Wed, 18 Mar 2015 13:52:59 +0000 (06:52 -0700)
Fixed condition of judging children count of an element

Change-Id: I9547294a2c1b1018a0bed87e4eab656a61ed2e2e
Signed-Off-By: Youmin Ha <youmin.ha@samsung.com>
src/tpk/step/step_parse.cc

index 2a85ca1..85de2f7 100644 (file)
@@ -25,7 +25,7 @@ namespace {
   XmlElement* Get1stChild(XmlTree *tree,
       XmlElement* parent, const string element_name) {
     vector<XmlElement*> v = tree->Children(parent, element_name);
-    if (!v.size() < 1) {
+    if (v.size() < 1) {
       LOG(ERROR) << element_name << " is not found as a child of " <<
           parent->name();
       return nullptr;