Treat read_simple_string result uniformly

This commit is contained in:
Tony Garnock-Jones 2011-01-02 15:06:34 -05:00
parent 9dd094daeb
commit 187a17ca6d
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ int sexp_read(IOHandle *h, sexp_t **result_ptr) {
}
buf.len = 1; /* needed to avoid reading too much in read_simple_string */
accumulator = read_simple_string(h, buf);
if (h->error_kind) goto error;
if (accumulator == NULL) goto error;
break;
}