summaryrefslogtreecommitdiff
blob: fd72dbc89065cfc985cf488e33c98a2683b47f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Bug: https://bugs.gentoo.org/610778

From e0f31f63ba4252ced7128d3ceec2bc668e8681f4 Mon Sep 17 00:00:00 2001
From: Legimet <legimet.calc@gmail.com>
Date: Sat, 13 Aug 2016 23:41:27 -0400
Subject: [PATCH] Fix build error with GCC 6, caused by comparing
 basic_ifstream to NULL

---
 src/lev/Proxy.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lev/Proxy.cc b/src/lev/Proxy.cc
index 6d58c0ba..69f54a20 100644
--- a/src/lev/Proxy.cc
+++ b/src/lev/Proxy.cc
@@ -933,7 +933,7 @@ namespace enigma { namespace lev {
                     } else if (haveLocalCopy) {
                         // plain file
                         basic_ifstream<char> ifs(absExtPath.c_str(), ios::binary | ios::in);
-                        if (ifs != NULL)
+                        if (ifs)
                             Readfile(ifs, extCode);
                         else
                             haveLocalCopy = false;