Fix check on result of sexp_write()

This commit is contained in:
Tony Garnock-Jones 2010-12-29 23:58:17 -05:00
parent a3ebf4df37
commit dff260f74a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static void send_sexp_syntax_error(IOHandle *h, char const *message) {
INCREF(m);
iohandle_clear_error(h);
ICHECK(sexp_write(h, m), "send_sexp_syntax_error sexp_write");
BCHECK(!sexp_write(h, m), "send_sexp_syntax_error sexp_write");
DECREF(m, sexp_destructor);
iohandle_flush(h); /* ignore result here, there's not much we can do with it */
}