From: Andy Lester Date: Tue, 7 Mar 2006 12:12:35 +0000 (-0600) Subject: Removed unnecessary NULL check in Digest::SHA X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3984a8a147dd40f6d585876c73b55c08e683b0fb;p=p5sagit%2Fp5-mst-13.2.git Removed unnecessary NULL check in Digest::SHA Message-ID: <20060307181235.GA25688@petdance.com> p4raw-id: //depot/perl@27482 --- diff --git a/ext/Digest/SHA/src/hmac.c b/ext/Digest/SHA/src/hmac.c index 60e1ba0..cec74a2 100644 --- 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); }