Rebase on upstream commit 32611aea6543 See $ cd SELinuxProject/selinux $ git log --pretty=oneline libsepol-3.2..32611aea6543 -- libsepol
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From 0bb89514eba0f34685c87278d600b152b28ea76e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
|
|
Date: Tue, 8 Jun 2021 17:59:06 +0200
|
|
Subject: [PATCH] libsepol/cil: drop dead store
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
../cil/src/cil_binary.c:2230:24: warning: Value stored to 'cb_node' during its initialization is never read [deadcode.DeadStores]
|
|
struct cil_tree_node *cb_node = node->cl_head;
|
|
^~~~~~~ ~~~~~~~~~~~~~
|
|
|
|
Found by clang-analyzer
|
|
|
|
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
|
|
Acked-by: James Carter <jwcart2@gmail.com>
|
|
---
|
|
libsepol/cil/src/cil_binary.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libsepol/cil/src/cil_binary.c b/libsepol/cil/src/cil_binary.c
|
|
index 85094b01ef9d..601fe8d10ab1 100644
|
|
--- a/libsepol/cil/src/cil_binary.c
|
|
+++ b/libsepol/cil/src/cil_binary.c
|
|
@@ -2227,7 +2227,7 @@ int cil_booleanif_to_policydb(policydb_t *pdb, const struct cil_db *db, struct c
|
|
int rc = SEPOL_ERR;
|
|
struct cil_args_booleanif bool_args;
|
|
struct cil_booleanif *cil_boolif = (struct cil_booleanif*)node->data;
|
|
- struct cil_tree_node *cb_node = node->cl_head;
|
|
+ struct cil_tree_node *cb_node;
|
|
struct cil_tree_node *true_node = NULL;
|
|
struct cil_tree_node *false_node = NULL;
|
|
struct cil_tree_node *tmp_node = NULL;
|
|
--
|
|
2.32.0
|
|
|