From 4be518758d519adf590138011ea913c70f1d570a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 29 Apr 2017 19:03:16 +0200 Subject: [PATCH] KPath.Adopt() fixed incorrect path/buffer length. * The other object was left in an inconsistent state. * This lets the unit test for Adopt() pass. --- src/system/kernel/fs/KPath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/kernel/fs/KPath.cpp b/src/system/kernel/fs/KPath.cpp index e59c96c593..f172adb595 100644 --- a/src/system/kernel/fs/KPath.cpp +++ b/src/system/kernel/fs/KPath.cpp @@ -98,6 +98,8 @@ KPath::Adopt(KPath& other) fBufferSize = other.fBufferSize; other.fBuffer = NULL; + other.fBufferSize = 0; + other.fPathLength = 0; }