1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8103

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);