Skip to content

Commit c2d625d

Browse files
committed
fi
1 parent f9e0a23 commit c2d625d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libr/io/p/io_default.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,18 @@ static RIOMMapFileObj *mmap_create(RIO *io, const char *filename, int perm, int
114114
RIOMMapFileObj *mmo = R_NEW0 (RIOMMapFileObj);
115115
if (r_str_startswith (filename, "file://")) {
116116
filename += strlen ("file://");
117+
mmo->rawio = false; // causes test_io_buf to fail if set to true
117118
} else if (r_str_startswith (filename, "stdio://")) {
118119
filename += strlen ("stdio://");
119120
mmo->rawio = true;
120121
} else if (r_str_startswith (filename, "nocache://")) {
121122
mmo->rawio = true;
122123
mmo->nocache = true;
123124
} else {
124-
// TODO later: mmo->rawio = true;
125+
mmo->rawio = true;
125126
}
126127
if (mmo->nocache) {
128+
// TODO later: mmo->rawio = true;
127129
filename += strlen ("nocache://");
128130
}
129131
mmo->filename = strdup (filename);

0 commit comments

Comments
 (0)