No sense in copying the hex[] array in each call to MDXEnd(), it's a

constant.  (There probably ought to be a single libc version of it.)
This commit is contained in:
Garrett Wollman 1995-04-27 16:05:51 +00:00
parent 61614fe0ad
commit 003d29986d

View file

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $FreeBSD$
* $Id$
*
*/
@ -25,7 +25,7 @@ MDXEnd(MDX_CTX *ctx)
int i;
char *p = malloc(33);
unsigned char digest[16];
char hex[]="0123456789abcdef";
static const char hex[]="0123456789abcdef";
if(!p) return 0;
MDXFinal(digest,ctx);