fix bugs reported in PR 8848
svn: r7054
This commit is contained in:
parent
4eef47a768
commit
e7a66f2ac9
|
@ -103,7 +103,7 @@ static void initialize_signal_handler()
|
|||
# ifdef NEED_SIGACTION
|
||||
{
|
||||
struct sigaction act, oact;
|
||||
memset(&act, sizeof(sigaction), 0);
|
||||
memset(&act, 0, sizeof(sigaction));
|
||||
act.sa_sigaction = fault_handler;
|
||||
sigemptyset(&act.sa_mask);
|
||||
/* In MzScheme, SIGCHLD or SIGINT handling may trigger a write barrier: */
|
||||
|
|
|
@ -4594,7 +4594,7 @@ static int utf8_decode_x(const unsigned char *s, int start, int end,
|
|||
/* Continues a sequence ... */
|
||||
if (state) {
|
||||
/* ... and we're in one ... */
|
||||
if (!nextbits | (sc & nextbits)) {
|
||||
if (!nextbits || (sc & nextbits)) {
|
||||
/* and we have required bits. */
|
||||
v = (v << 6) + (sc & 0x3F);
|
||||
nextbits = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user