git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ACL: patterns for remove_headers. Bug 2985
[exim.git]
/
src
/
src
/
header.c
diff --git
a/src/src/header.c
b/src/src/header.c
index d5f1dcd6bfd1058b667a03eb99f66c7b5a0fdc20..59a9a13b304d4eba2e800bb0db952ffe284c8b5f 100644
(file)
--- a/
src/src/header.c
+++ b/
src/src/header.c
@@
-30,11
+30,12
@@
Returns: TRUE or FALSE
*/
BOOL
*/
BOOL
-header_testname(header_line *h, const uschar *name, int len, BOOL notdel)
+header_testname(const header_line * h, const uschar * name, int len,
+ BOOL notdel)
{
uschar *tt;
if (h->type == '*' && notdel) return FALSE;
{
uschar *tt;
if (h->type == '*' && notdel) return FALSE;
-if (
h->text == NULL
|| strncmpic(h->text, name, len) != 0) return FALSE;
+if (
!h->text
|| strncmpic(h->text, name, len) != 0) return FALSE;
tt = h->text + len;
while (*tt == ' ' || *tt == '\t') tt++;
return *tt == ':';
tt = h->text + len;
while (*tt == ' ' || *tt == '\t') tt++;
return *tt == ':';
@@
-46,11
+47,11
@@
return *tt == ':';
header_testname() above. */
BOOL
header_testname() above. */
BOOL
-header_testname_incomplete(
header_line *h, const uschar *
name,
+header_testname_incomplete(
const header_line * h, const uschar *
name,
int len, BOOL notdel)
{
if (h->type == '*' && notdel) return FALSE;
int len, BOOL notdel)
{
if (h->type == '*' && notdel) return FALSE;
-if (
h->text == NULL
|| strncmpic(h->text, name, len) != 0) return FALSE;
+if (
!h->text
|| strncmpic(h->text, name, len) != 0) return FALSE;
return TRUE;
}
return TRUE;
}