[exim-cvs] fix sub2_honour_dollar type

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] fix sub2_honour_dollar type
Gitweb: http://git.exim.org/exim.git/commitdiff/5cfd2e57f5842d83cd33650ae404b64e50e6ed65
Commit:     5cfd2e57f5842d83cd33650ae404b64e50e6ed65
Parent:     19cbdd27e03c039eb6244f126dc453fc0efcbf8a
Author:     Phil Pennock <pdp@???>
AuthorDate: Wed Oct 5 00:29:25 2011 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Wed Oct 5 00:29:25 2011 -0400


    fix sub2_honour_dollar type


    Was code correct before, but storing a ptr of 0 or 1, from bool initialiser.
    I meant to use a BOOL and it is more type-safe to do so, so fixed.
---
 src/src/expand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index ef40fd0..a3dc590 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1775,7 +1775,7 @@ eval_condition(uschar *s, BOOL *yield)
BOOL testfor = TRUE;
BOOL tempcond, combined_cond;
BOOL *subcondptr;
-BOOL *sub2_honour_dollar = TRUE;
+BOOL sub2_honour_dollar = TRUE;
int i, rc, cond_type, roffset;
int num[2];
struct stat statbuf;