diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2012-08-30 19:28:41 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2012-08-30 19:28:41 +0000 |
commit | c775378f748d89110cc6858ad5ca19f4e785fd68 (patch) | |
tree | 120e1b8f5f7bcbab759c8887d8fcc996cde447ef /usr.sbin | |
parent | e7c7e9598c5cbddf239208bce0b11399996b5032 (diff) |
fix uninitialized variable which can be reach in case of failure.
ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/queue_backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/queue_backend.c b/usr.sbin/smtpd/queue_backend.c index 25f0137f0fc..5eac3b478c4 100644 --- a/usr.sbin/smtpd/queue_backend.c +++ b/usr.sbin/smtpd/queue_backend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: queue_backend.c,v 1.35 2012/08/29 16:26:17 gilles Exp $ */ +/* $OpenBSD: queue_backend.c,v 1.36 2012/08/30 19:28:40 chl Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -173,7 +173,7 @@ queue_message_corrupt(uint32_t msgid) int queue_message_fd_r(uint32_t msgid) { - int fdin, fdout; + int fdin = -1, fdout = -1; FILE *ifp = NULL; FILE *ofp = NULL; |