From 83753bcbe3b9a2f9571378f2e6a244d086a2770f Mon Sep 17 00:00:00 2001 From: take-cheeze Date: Thu, 5 Mar 2020 01:07:36 +0900 Subject: [PATCH] Suppress maybe uninitialized warning in gcc-9 --- onnxruntime/core/common/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/common/path.cc b/onnxruntime/core/common/path.cc index d7378efbb3..ed7e286f46 100644 --- a/onnxruntime/core/common/path.cc +++ b/onnxruntime/core/common/path.cc @@ -140,7 +140,7 @@ Status Path::Parse(const PathString& original_path_str, Path& path) { const PathString path_str = NormalizePathSeparators(original_path_str); // parse root - size_t root_length; + size_t root_length = 0; ORT_RETURN_IF_ERROR(ParsePathRoot( path_str, result.root_name_, result.has_root_dir_, root_length));