From b122e31eacf0724a68834308ebf5a6a2f9c5a807 Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Fri, 3 Jul 2020 17:13:37 +0200
Subject: [PATCH] Fixed xpath usage in makefilegen (for GCC 9.3)

Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
Change-Id: Id6ec57bea7b0f13e03b7df0672f2d8eb75937630
---
 compiler2/xpather.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler2/xpather.cc b/compiler2/xpather.cc
index 3b9c43b6c..d2ade7e4d 100644
--- a/compiler2/xpather.cc
+++ b/compiler2/xpather.cc
@@ -1907,7 +1907,7 @@ static tpd_result process_tpd_internal(const char **p_tpd_name, char *tpdName, c
   // Collect files; filter out excluded ones
   {
     XPathObject  filesObj(run_xpath(xpathCtx,
-      "TITAN_Project_File_Information/Files/FileResource"));
+      "/TITAN_Project_File_Information/Files/FileResource"));
 
     xmlNodeSetPtr nodes = filesObj->nodesetval;
     if (nodes) for (int i = 0; i < nodes->nodeNr; ++i) {
-- 
GitLab