blob: f5e5d7dbad6f854400ec3c719d6a74025207e49c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ai,v 1.1 2007/01/24 10:25:15 sborrill Exp $
--- htnotify/htnotify.cc.orig 2002-01-31 23:47:18.000000000 +0000
+++ htnotify/htnotify.cc 2007-01-24 09:50:09.000000000 +0000
@@ -185,7 +185,7 @@
// define default preamble text - blank string
preambleText = "";
- if (prefixfile != NULL)
+ if (prefixfile != NULL && prefixfile[0] != 0)
{
ifstream in(prefixfile);
char buffer[1024];
@@ -212,7 +212,7 @@
postambleText << " http://www.htdig.org/meta.html\n\n";
postambleText << "Cheers!\n\nht://Dig Notification Service\n";
- if (suffixfile != NULL)
+ if (suffixfile != NULL && suffixfile[0] != 0)
{
ifstream in(suffixfile);
char buffer[1024];
|