From a918821868228d4f49d0e96c58bc8a6a3b4a91e0 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 28 Feb 2015 23:19:28 +0100
Subject: fs/Traits: add missing dereference in RelativePathImpl()

---
 src/fs/Traits.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/fs/Traits.cxx b/src/fs/Traits.cxx
index 225a6ee71..e434a779c 100644
--- a/src/fs/Traits.cxx
+++ b/src/fs/Traits.cxx
@@ -98,7 +98,7 @@ RelativePathImpl(typename Traits::const_pointer base,
 		return nullptr;
 
 	other += base_length;
-	if (other != 0) {
+	if (*other != 0) {
 		if (!Traits::IsSeparator(*other))
 			/* mismatch */
 			return nullptr;
-- 
cgit v1.2.3