Skip to content

Commit

Permalink
Fix a couple of dead assignments scan-build gripes pointlessly about.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed May 8, 2019
1 parent a70a006 commit a970f1d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/wincert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a970f1d

Please sign in to comment.