projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f13fd
)
Removed unnecessary NULL check in Digest::SHA
author
Andy Lester
<andy@petdance.com>
Tue, 7 Mar 2006 12:12:35 +0000
(06:12 -0600)
committer
Steve Peters
<steve@fisharerojo.org>
Sun, 12 Mar 2006 14:07:17 +0000
(14:07 +0000)
Message-ID: <
20060307181235
.GA25688@petdance.com>
p4raw-id: //depot/perl@27482
ext/Digest/SHA/src/hmac.c
patch
|
blob
|
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);
}