From a970f1db237b08d88fb7d47e64094931456e853f Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 8 May 2019 16:25:35 -0400 Subject: [PATCH] Fix a couple of dead assignments scan-build gripes pointlessly about. Signed-off-by: Peter Jones --- src/actions.c | 2 -- src/daemon.c | 1 - src/wincert.c | 1 - 3 files changed, 4 deletions(-) diff --git a/src/actions.c b/src/actions.c index 5e7e5429..a68b6652 100644 --- a/src/actions.c +++ b/src/actions.c @@ -98,7 +98,6 @@ list_signatures(pesign_context *ctx) cert_iter iter; int rc = cert_iter_init(&iter, ctx->inpe); - if (rc < 0) { printf("No certificate list found.\n"); return rc; @@ -108,7 +107,6 @@ list_signatures(pesign_context *ctx) ssize_t datalen; int nsigs = 0; - rc = 0; while (1) { rc = next_cert(&iter, &data, &datalen); if (rc <= 0) diff --git a/src/daemon.c b/src/daemon.c index 1a8d9624..84b9ebcb 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -466,7 +466,6 @@ sign_pe(context *ctx, int infd, int outfd, int attached) if (rc < 0) goto finish; - rc = 0; if (attached) { Pe *outpe = NULL; rc = set_up_outpe(ctx, outfd, inpe, &outpe); diff --git a/src/wincert.c b/src/wincert.c index 68bc6abb..4ccf528e 100644 --- a/src/wincert.c +++ b/src/wincert.c @@ -315,7 +315,6 @@ parse_signatures(SECItem ***sigs, int *num_sigs, Pe *pe) ssize_t datalen; int nsigs = 0; - rc = 0; while (1) { rc = next_cert(&iter, &data, &datalen); if (rc <= 0)