summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-09-08 00:12:44 +0000
committerStef Walter <stef@memberwebs.com>2005-09-08 00:12:44 +0000
commita9f212b09ddf1fe1c621cdb7f7ccb0357f659d7f (patch)
tree5da3abf15f005df6ac84f18ccce0e129eb5b706f /common
parent84c545f775eee2ca9d4ac7f0aa3ba10cf142720f (diff)
Better checks for valid IO.
Diffstat (limited to 'common')
-rw-r--r--common/smtppass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/smtppass.h b/common/smtppass.h
index 9dbe935..d10bed1 100644
--- a/common/smtppass.h
+++ b/common/smtppass.h
@@ -77,7 +77,7 @@ typedef struct spio
}
spio_t;
-#define spio_valid(io) ((io)->fd != -1)
+#define spio_valid(io) ((io) && (io)->fd != -1)
/* Setup the io structure (allocated elsewhere) */
void spio_init(spio_t* io, const char* name);