Skip to content

Commit

Permalink
libsepol: remove dead stores
Browse files Browse the repository at this point in the history
Found by Infer

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
  • Loading branch information
cgzones authored and jwcart2 committed Jun 24, 2021
1 parent 19a6ebf commit 1076a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsepol/src/services.c
Expand Up @@ -175,7 +175,7 @@ static int expr_buf_len;
static void cat_expr_buf(char *e_buf, const char *string)
{
int len, new_buf_len;
char *p, *new_buf = e_buf;
char *p, *new_buf;

while (1) {
p = e_buf + expr_buf_used;
Expand Down Expand Up @@ -406,7 +406,7 @@ static int constraint_expr_eval_reason(context_struct_t *scontext,
#define TARGET 2
#define XTARGET 3

int s_t_x_num = SOURCE;
int s_t_x_num;

/* Set 0 = fail, u = CEXPR_USER, r = CEXPR_ROLE, t = CEXPR_TYPE */
int u_r_t = 0;
Expand Down

0 comments on commit 1076a07

Please sign in to comment.