KPathTest: Fix build for GCC 5.

* Also fixed a warning in KPath.
* Sorry, again!
This commit is contained in:
Axel Dörfler 2017-04-30 18:17:51 +02:00
parent 16825fd976
commit 655aae6a79
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -6,6 +6,7 @@
#include "KPathTest.h"
#include <stdlib.h>
#include <string.h>
#include <fs/KPath.h>