Skip to content

Commit

Permalink
Fix static analyser warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Poitrey committed Nov 22, 2010
1 parent bec7243 commit 3f016b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -160,6 +160,7 @@ else if (theRemainingBytes == 2)
outOutputData[theOutIndex++] = '\n';
}
}
theOutIndex; // make static analyzer happy
return(true);
}

Expand Down
6 changes: 1 addition & 5 deletions Classes/ShareKit/Core/Helpers/OAuth/Crytpo/sha1.c
Expand Up @@ -96,8 +96,6 @@ static unsigned char workspace[64];
state[2] += c;
state[3] += d;
state[4] += e;
/* Wipe variables */
a = b = c = d = e = 0;
}


Expand Down Expand Up @@ -141,7 +139,7 @@ unsigned int i, j;

void SHA1Final(unsigned char digest[20], SHA1_CTX* context)
{
unsigned long i, j;
unsigned long i;
unsigned char finalcount[8];

for (i = 0; i < 8; i++) {
Expand All @@ -157,8 +155,6 @@ unsigned char finalcount[8];
digest[i] = (unsigned char)
((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255);
}
/* Wipe variables */
i = j = 0;
memset(context->buffer, 0, 64);
memset(context->state, 0, 20);
memset(context->count, 0, 8);
Expand Down

0 comments on commit 3f016b4

Please sign in to comment.