Fix issue with missing xml:lang attribute 53/54253/2
authorLukasz Wysocki <l.wysocki@samsung.com>
Mon, 14 Dec 2015 10:04:33 +0000 (11:04 +0100)
committerLukasz Wysocki <l.wysocki@samsung.com>
Mon, 14 Dec 2015 10:32:09 +0000 (11:32 +0100)
Change-Id: Id9bebf76e6e1f71796d74d80655618751f7ccede

src/wgt/step/step_parse.cc

index 23266e1..ef4b1b2 100644 (file)
@@ -140,7 +140,7 @@ bool StepParse::FillWidgetInfo(manifest_x* manifest) {
     description_x* description = reinterpret_cast<description_x*>
         (calloc(1, sizeof(description_x)));
     description->text = strdup(item.second.c_str());
-    description->lang = item.first.c_str() ?
+    description->lang = !item.first.empty() ?
         strdup(item.first.c_str()) : strdup(DEFAULT_LOCALE);
     manifest->description = g_list_append(manifest->description, description);
   }