KPath.Adopt() fixed incorrect path/buffer length.
* The other object was left in an inconsistent state. * This lets the unit test for Adopt() pass.
This commit is contained in:
@@ -98,6 +98,8 @@ KPath::Adopt(KPath& other)
|
|||||||
fBufferSize = other.fBufferSize;
|
fBufferSize = other.fBufferSize;
|
||||||
|
|
||||||
other.fBuffer = NULL;
|
other.fBuffer = NULL;
|
||||||
|
other.fBufferSize = 0;
|
||||||
|
other.fPathLength = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user