We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92fecf6 + 55f9f92 commit 3ee6dd6Copy full SHA for 3ee6dd6
1 file changed
frontend/drivers/platform_emscripten.c
@@ -628,14 +628,18 @@ static void platform_emscripten_mount_filesystems(void)
628
char *base_url = strdup(line);
629
base_url[strcspn(base_url, "\r\n")] = '\0'; // drop newline
630
base_url[len-1] = '\0'; // drop newline
631
- backend_t fetch;
+ backend_t fetch = NULL;
632
len = max_line_len;
633
// Don't create fetch backend unless manifest actually has entries
634
while (getline(&line, &len, file) != -1)
635
{
636
if (!fetch)
637
638
fetch = wasmfs_create_fetch_backend(base_url, 16*1024*1024);
639
+ if(!fetch) {
640
+ printf("[FetchFS] couldn't create fetch backend for %s\n", base_url);
641
+ abort();
642
+ }
643
wasmfs_create_directory(fetch_base_dir, 0777, fetch);
644
}
645
char *realfs_path = strstr(line, " "), *url = line;
0 commit comments