shut up valgrind in the RAND_add() code… sounds familiar…
I’m committing this from a Debian system… but fear not… I know what I am doing…
This commit is contained in:
parent
d2ef1d5d2c
commit
c75ed28019
7
var.c
7
var.c
|
@ -28,7 +28,7 @@
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.179 2014/06/09 11:13:19 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.180 2014/06/26 20:36:02 tg Exp $");
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Variables
|
* Variables
|
||||||
|
@ -1615,6 +1615,11 @@ rndset(unsigned long v)
|
||||||
short r;
|
short r;
|
||||||
} z;
|
} z;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
/* clear the allocated space, for valgrind */
|
||||||
|
memset(&z, 0, sizeof(z));
|
||||||
|
#endif
|
||||||
|
|
||||||
h = lcg_state;
|
h = lcg_state;
|
||||||
BAFHFinish_reg(h);
|
BAFHFinish_reg(h);
|
||||||
BAFHUpdateMem_reg(h, &v, sizeof(v));
|
BAFHUpdateMem_reg(h, &v, sizeof(v));
|
||||||
|
|
Loading…
Reference in New Issue