Commit c30b3084 authored by Damien George's avatar Damien George
Browse files

extmod/vfs_reader: Fix use of NLR by popping context.

parent 5ec5bfb0
......@@ -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);
if (errcode != 0) {
return errcode;
Supports Markdown
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