[exim-cvs] Fix use of uninitialized variable

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] Fix use of uninitialized variable
Gitweb: http://git.exim.org/exim.git/commitdiff/c5430c20d5c3b6fd293b96761ef850d6b301d791
Commit:     c5430c20d5c3b6fd293b96761ef850d6b301d791
Parent:     89f2a2697c74fde51754770ae3b3971e5c3e6082
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Dec 15 18:36:48 2013 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sun Dec 15 22:22:21 2013 +0000


    Fix use of uninitialized variable
---
 src/src/receive.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/src/src/receive.c b/src/src/receive.c
index 9205436..02db23f 100644
--- a/src/src/receive.c
+++ b/src/src/receive.c
@@ -1454,7 +1454,7 @@ BOOL resents_exist = FALSE;
uschar *resent_prefix = US"";
uschar *blackholed_by = NULL;
uschar *blackhole_log_msg = US"";
-enum {NOT_TRIED, TMP_REJ, PERM_REJ, ACCEPTED} cutthrough_done;
+enum {NOT_TRIED, TMP_REJ, PERM_REJ, ACCEPTED} cutthrough_done = NOT_TRIED;

flock_t lock_data;
error_block *bad_addresses = NULL;
@@ -3956,7 +3956,6 @@ for this message. */

    XXX We do not handle queue-only, freezing, or blackholes.
 */
-cutthrough_done = NOT_TRIED;
 if(cutthrough_fd >= 0)
   {
   uschar * msg= cutthrough_finaldot();    /* Ask the target system to accept the messsage */