Commit a99d85d8 authored by Niels Möller's avatar Niels Möller
Browse files

* read_scan.c (do_read_scan): Check if the current scanner is NULL

_after_ scanning each character.

Rev: src/read_scan.c:1.3
parent f9ef94ee
......@@ -68,12 +68,16 @@ static int do_read_scan(struct read_handler **h,
for (i = 0; i<n; i++)
int res;
#if 0
if (!closure->scanner)
return LSH_CLOSE;
res = SCAN(closure->scanner, buffer[i]);
if (LSH_FAILUREP(res))
return res | LSH_DIE;
if (!closure->scanner)
return res | LSH_CLOSE;
return LSH_OK | LSH_GOON;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment