Skip to content

Commit cf36a28

Browse files
committed
wasmtime: properly check wat file extension
Signed-off-by: Maximilian Hüter <[email protected]>
1 parent 741045a commit cf36a28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/handlers/wasmtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ libwasmtime_exec (void *cookie, libcrun_container_t *container arg_unused,
104104
// If entrypoint contains a webassembly text format
105105
// compile it on the fly and convert to equivalent
106106
// binary format.
107-
if (has_suffix (pathname, "wat") > 0)
107+
if (has_suffix (pathname, ".wat") > 0)
108108
{
109109
wasmtime_error_t *err = wasmtime_wat2wasm ((char *) wasm.data, file_size, &wasm_bytes);
110110
if (err != NULL)

0 commit comments

Comments
 (0)