Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c30b3084
Commit
c30b3084
authored
Jan 30, 2017
by
Damien George
Browse files
extmod/vfs_reader: Fix use of NLR by popping context.
parent
5ec5bfb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/vfs_reader.c
View file @
c30b3084
...
...
@@ -81,6 +81,7 @@ int mp_reader_new_file(mp_reader_t *reader, const char *filename) {
rf
->
file
=
mp_vfs_open
(
1
,
&
arg
,
(
mp_map_t
*
)
&
mp_const_empty_map
);
int
errcode
;
rf
->
len
=
mp_stream_rw
(
rf
->
file
,
rf
->
buf
,
sizeof
(
rf
->
buf
),
&
errcode
,
MP_STREAM_RW_READ
|
MP_STREAM_RW_ONCE
);
nlr_pop
();
if
(
errcode
!=
0
)
{
return
errcode
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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