mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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:
parent
61614fe0ad
commit
003d29986d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue