fix bugs reported in PR 8848

svn: r7054
This commit is contained in:
Matthew Flatt 2007-08-08 12:11:24 +00:00
parent 4eef47a768
commit e7a66f2ac9
2 changed files with 2 additions and 2 deletions

View File

@ -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: */

View File

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