View | Details | Raw Unified | Return to bug 216070
Collapse All | Expand All

(-)Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	source-highlight
4
PORTNAME=	source-highlight
5
PORTVERSION=	3.1.6
5
PORTVERSION=	3.1.6
6
PORTREVISION=	8
6
PORTREVISION=	9
7
CATEGORIES=	textproc
7
CATEGORIES=	textproc
8
MASTER_SITES=	GNU/src-highlite
8
MASTER_SITES=	GNU/src-highlite
9
9
(-)files/patch-settings.cpp (+28 lines)
Line 0 Link Here
1
--- lib/srchilite/settings.cpp.orig	2018-01-12 13:52:53 UTC
2
+++ lib/srchilite/settings.cpp
3
@@ -94,14 +94,14 @@ bool Settings::checkForTestFile() {
4
     string file = dataDir + "/" + testFileName;
5
     ifstream i(file.c_str());
6
 
7
-    return (i != 0);
8
+    return (i != '\0');
9
 }
10
 
11
 bool Settings::checkForConfFile() {
12
     string file = confDir + confFileName;
13
     ifstream i(file.c_str());
14
 
15
-    return (i != 0);
16
+    return (i != '\0');
17
 }
18
 
19
 bool Settings::readDataDir() {
20
@@ -109,7 +109,7 @@ bool Settings::readDataDir() {
21
     ifstream i(file.c_str());
22
 
23
     string line;
24
-    if (i != 0) {
25
+    if (i != '\0') {
26
         while (read_line(&i, line)) {
27
             if (line.size()) {
28
                 boost::cmatch what;

Return to bug 216070