projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
47f13fd
)
Removed unnecessary NULL check in Digest::SHA
Andy Lester [Tue, 7 Mar 2006 12:12:35 +0000 (06:12 -0600)]
Message-ID: <
20060307181235
.GA25688@petdance.com>
p4raw-id: //depot/perl@27482
ext/Digest/SHA/src/hmac.c
patch
|
blob
|
blame
|
history
diff --git
a/ext/Digest/SHA/src/hmac.c
b/ext/Digest/SHA/src/hmac.c
index
60e1ba0
..
cec74a2
100644
(file)
--- a/
ext/Digest/SHA/src/hmac.c
+++ b/
ext/Digest/SHA/src/hmac.c
@@
-106,9
+106,7
@@
int hmacclose(h)
HMAC *h;
{
shaclose(h->osha);
- if (h != NULL) {
- memset(h, 0, sizeof(HMAC));
- SHA_free(h);
- }
+ memset(h, 0, sizeof(HMAC));
+ SHA_free(h);
return(0);
}