KPathTest: Fix build for GCC 5.
* Also fixed a warning in KPath. * Sorry, again!
This commit is contained in:
parent
16825fd976
commit
655aae6a79
@ -123,7 +123,7 @@ KPath::Adopt(KPath& other)
|
||||
status_t
|
||||
KPath::InitCheck() const
|
||||
{
|
||||
if (fBuffer != NULL || fLazy && !fFailed && fBufferSize != 0)
|
||||
if (fBuffer != NULL || (fLazy && !fFailed && fBufferSize != 0))
|
||||
return B_OK;
|
||||
|
||||
return fFailed ? B_NO_MEMORY : B_NO_INIT;
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "KPathTest.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <fs/KPath.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user