unsigned compiler warnings.
-/* $Cambridge: exim/src/src/acl.c,v 1.62 2006/06/28 16:00:23 ph10 Exp $ */
+/* $Cambridge: exim/src/src/acl.c,v 1.63 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
{
uschar *user_message = NULL;
uschar *log_message = NULL;
-uschar *p;
+uschar *p = NULL;
int rc = OK;
#ifdef WITH_CONTENT_SCAN
int sep = '/';
-/* $Cambridge: exim/src/src/auths/pwcheck.c,v 1.2 2005/06/27 14:29:44 ph10 Exp $ */
+/* $Cambridge: exim/src/src/auths/pwcheck.c,v 1.3 2006/09/05 14:05:43 ph10 Exp $ */
/* SASL server API implementation
* Rob Siemborski
const uschar *realm,
const uschar **reply)
{
- uschar *daemon_reply;
+ uschar *daemon_reply = NULL;
int s, r;
struct sockaddr_un srvaddr;
-/* $Cambridge: exim/src/src/expand.c,v 1.58 2006/04/18 11:13:19 ph10 Exp $ */
+/* $Cambridge: exim/src/src/expand.c,v 1.59 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
{
/* Handle an IP (internet) domain */
- if (strncmp(sub_arg[0], "inet:", 5) == 0)
+ if (Ustrncmp(sub_arg[0], "inet:", 5) == 0)
{
BOOL connected = FALSE;
int namelen, port;
-/* $Cambridge: exim/src/src/filter.c,v 1.12 2006/08/21 11:31:43 fanf2 Exp $ */
+/* $Cambridge: exim/src/src/filter.c,v 1.13 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
static BOOL
test_condition(condition_block *c, BOOL toplevel)
{
-BOOL yield;
+BOOL yield = FALSE;
const pcre *re;
uschar *exp[2], *p, *pp;
const uschar *regcomp_error = NULL;
-/* $Cambridge: exim/src/src/host.c,v 1.24 2006/04/04 11:18:31 ph10 Exp $ */
+/* $Cambridge: exim/src/src/host.c,v 1.25 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
i++)
{
BOOL ipv4_addr;
- int error_num;
+ int error_num = 0;
struct hostent *hostdata;
#if HAVE_IPV6
-/* $Cambridge: exim/src/src/lookups/pgsql.c,v 1.7 2006/07/14 14:42:57 ph10 Exp $ */
+/* $Cambridge: exim/src/src/lookups/pgsql.c,v 1.8 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
server the server string; this is in dynamic memory and can be updated
resultptr where to store the result
errmsg where to point an error message
- defer_break TRUE if no more servers are to be tried after DEFER
+ defer_break set TRUE if no more servers are to be tried after DEFER
do_cache set FALSE if data is changed
Returns: OK, FAIL, or DEFER
*errmsg = string_sprintf("PGSQL connection failed: %s",
PQerrorMessage(pg_conn));
PQfinish(pg_conn);
- *defer_break = FALSE;
goto PGSQL_EXIT;
}
*errmsg = string_sprintf("PGSQL: query failed: %s (%s) (%s)\n",
PQresultErrorMessage(pg_result),
PQresStatus(PQresultStatus(pg_result)), query);
- *defer_break = FALSE;
goto PGSQL_EXIT;
}
while ((server = string_nextinlist(&list, &sep, buffer, sizeof(buffer)))
!= NULL)
{
- BOOL defer_break;
+ BOOL defer_break = FALSE;
int rc = perform_pgsql_search(query, server, result, errmsg, &defer_break,
do_cache);
if (rc != DEFER || defer_break) return rc;
-/* $Cambridge: exim/src/src/rda.c,v 1.12 2006/02/07 11:19:00 ph10 Exp $ */
+/* $Cambridge: exim/src/src/rda.c,v 1.13 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
if (rdata->isfile)
{
- int yield;
+ int yield = 0;
data = rda_get_file_contents(rdata, options, error, &yield);
if (data == NULL) return yield;
}
-/* $Cambridge: exim/src/src/sieve.c,v 1.21 2006/04/25 10:44:57 ph10 Exp $ */
+/* $Cambridge: exim/src/src/sieve.c,v 1.22 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
}
else
{
- struct String qp;
+ struct String qp = { NULL, 0 }; /* Keep compiler happy (PH) */
capacity = 0;
start = reason.length;
-/* $Cambridge: exim/src/src/spam.c,v 1.12 2006/07/03 15:19:44 ph10 Exp $ */
+/* $Cambridge: exim/src/src/spam.c,v 1.13 2006/09/05 14:05:43 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
#endif
/* stop compiler warning */
- result = result;
+ result = 0;
/* find the username from the option list */
if ((user_name = string_nextinlist(&list, &sep,