1.1 --- a/libfsclient/lib/src/client.cc Tue Aug 31 23:51:13 2021 +0200
1.2 +++ b/libfsclient/lib/src/client.cc Sat Sep 04 23:23:32 2021 +0200
1.3 @@ -77,6 +77,15 @@
1.4 }
1.5 else
1.6 {
1.7 + /* Handle the initial condition with no current region. */
1.8 +
1.9 + if (file->memory == NULL)
1.10 + {
1.11 + err = client_current_region(file);
1.12 + if (err)
1.13 + return err;
1.14 + }
1.15 +
1.16 /* Strict conditions for region navigation in pipes. */
1.17
1.18 if ((position < file->start_pos) || (position > file->end_pos))