From 1ad69339532944d91401002d1dac428b78eb0414 Mon Sep 17 00:00:00 2001 From: ston3lu Date: Wed, 3 Sep 2025 08:27:18 +0000 Subject: [PATCH] Fix uninitialized variable in nfstime https://github.com/vitalif/vitastor/pull/95 By submitting this pull request, I accept Vitastor CLA --- src/nfs/nfs_kv.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nfs/nfs_kv.cpp b/src/nfs/nfs_kv.cpp index 842d45ba..b505a8fd 100644 --- a/src/nfs/nfs_kv.cpp +++ b/src/nfs/nfs_kv.cpp @@ -25,7 +25,10 @@ nfstime3 nfstime_from_str(const std::string & s) t.nseconds /= 10; } else + { t.seconds = stoull_full(s, 10); + t.nseconds = 0; + } return t; }