Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
a99d85d8
Commit
a99d85d8
authored
Jan 08, 1999
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/read_scan.c
View file @
a99d85d8
...
...
@@ -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;
#endif
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment