From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC09543E90; Wed, 17 Apr 2024 11:32:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D31B4402AE; Wed, 17 Apr 2024 11:32:42 +0200 (CEST) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by mails.dpdk.org (Postfix) with ESMTP id 6EC714029E for ; Wed, 17 Apr 2024 11:32:41 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4VKFx03g9Tz1RDjT for ; Wed, 17 Apr 2024 17:29:40 +0800 (CST) Received: from dggpeml500011.china.huawei.com (unknown [7.185.36.84]) by mail.maildlp.com (Postfix) with ESMTPS id DCC7F1A016F for ; Wed, 17 Apr 2024 17:32:38 +0800 (CST) Received: from localhost.huawei.com (10.50.165.33) by dggpeml500011.china.huawei.com (7.185.36.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 17:32:38 +0800 From: Dengdui Huang To: CC: , , , , Subject: [PATCH] devtools: fix version variable not initialized Date: Wed, 17 Apr 2024 17:32:36 +0800 Message-ID: <20240417093236.3786106-1-huangdengdui@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.50.165.33] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500011.china.huawei.com (7.185.36.84) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The version variable is not initialized. Therefore, if the -V option is not specified, the value of $version is obtained from the context, which may cause the version map parsing failure. Fixes: 6edec7f202ac ("devtools: list symbols by version") Cc: stable@dpdk.org Signed-off-by: Dengdui Huang --- buildtools/map-list-symbol.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/buildtools/map-list-symbol.sh b/buildtools/map-list-symbol.sh index bc3b8d766f..43f276c05f 100755 --- a/buildtools/map-list-symbol.sh +++ b/buildtools/map-list-symbol.sh @@ -5,6 +5,7 @@ section=all symbol=all quiet= +version= while getopts 'S:s:qV:' name; do case $name in -- 2.33.0