Change 27482 by [EMAIL PROTECTED] on 2006/03/12 14:07:17
Subject: [PATCH] Removed unnecessary NULL check in Digest::SHA
From: Andy Lester <[EMAIL PROTECTED]>
Date: Tue, 7 Mar 2006 12:12:35 -0600
Message-ID: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/ext/Digest/SHA/src/hmac.c#3 edit
Differences ...
==== //depot/perl/ext/Digest/SHA/src/hmac.c#3 (text) ====
Index: perl/ext/Digest/SHA/src/hmac.c
--- perl/ext/Digest/SHA/src/hmac.c#2~27218~ 2006-02-18 04:58:49.000000000
-0800
+++ perl/ext/Digest/SHA/src/hmac.c 2006-03-12 06:07:17.000000000 -0800
@@ -106,9 +106,7 @@
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);
}
End of Patch.