From a9272bad84bf3791aeb86fcb14f341c836fbdf07 Mon Sep 17 00:00:00 2001 From: jsteemann Date: Fri, 16 Jul 2021 10:56:02 +0200 Subject: [PATCH] fix a g++-9 compile warning for a potentially uninitialized var --- lib/V8/v8-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/V8/v8-utils.cpp b/lib/V8/v8-utils.cpp index dcadf3210052..b2862dfa62a3 100644 --- a/lib/V8/v8-utils.cpp +++ b/lib/V8/v8-utils.cpp @@ -2456,7 +2456,7 @@ static void JS_MTime(v8::FunctionCallbackInfo const& args) { std::string("not allowed to read files in this path: ") + filename); } - int64_t mtime; + int64_t mtime = 0; auto res = TRI_MTimeFile(filename.c_str(), &mtime); if (res != TRI_ERROR_NO_ERROR) {