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