[exim-cvs] spurious compiler warning of unused var fix |
| This message is part of the following thread: | |
|---|---|
![]() | the complete thread tree sorted by date |
Commit: 0f5014860e54132a13e4ecc2f7f1859a9f3a971b Parent: da3ad30dcfbb4770835c2b7e165bb719f76cfc16 Author: Phil Pennock <pdp@???> AuthorDate: Thu May 3 19:18:34 2012 -0700 Committer: Phil Pennock <pdp@???> CommitDate: Thu May 3 19:18:34 2012 -0700
spurious compiler warning of unused var fix
(but added check in case wrong about spuriousness)
---
src/src/spam.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
+ if (spamd_sock == -1) {
+ log_write(0, LOG_MAIN|LOG_PANIC,
+ "programming fault, spamd_sock unexpectedly unset");
+ (void)fclose(mbox_file);
+ (void)close(spamd_sock);
+ return DEFER;
+ }
+
/* now we are connected to spamd on spamd_sock */
(void)string_format(spamd_buffer,
sizeof(spamd_buffer),
| This message was posted to the following mailing lists: | ||||
|---|---|---|---|---|
| exim-cvs Mailing List Info | Nearby Messages | ![]() | [exim-cvs] OpenSSL fixes and backwards compat break. | [exim-cvs] Guard loadable module vars with LOOKUP_MODULE_DIR. | ![]() |
| Tahini Development Archives administrated by Tahini Admins | Lurker (version 2.3) |


