From cca137c0dc7c97d1b7e54890877acdd6d5a2eee7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 21 Apr 2021 06:12:10 +0200 Subject: [PATCH] :art: Fix invalid file memory --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile.c b/src/compile.c index aa06e238..6cf1e8fc 100644 --- a/src/compile.c +++ b/src/compile.c @@ -70,7 +70,7 @@ ANN static m_bool _compiler_open(struct Compiler* c) { #ifndef BUILD_ON_WINDOWS #include ANN static int is_reg(const m_str path) { - struct stat s; + struct stat s = {}; stat(path, &s); return !S_ISDIR(s.st_mode) && (S_ISREG(s.st_mode) || !S_ISFIFO(s.st_mode)); -- 2.43.0