diff options
author | maniac <fgma@users.noreply.github.com> | 2019-11-24 10:43:18 +0100 |
---|---|---|
committer | maniac <fgma@users.noreply.github.com> | 2019-11-24 10:43:18 +0100 |
commit | 0d9aebb4197cf99020afed950fd9f43afe38427e (patch) | |
tree | f287103d5327639eac3ff811adf9339ed6b7d41f | |
parent | coding style cleanups (diff) | |
download | OpenSMTPD-0d9aebb4197cf99020afed950fd9f43afe38427e.tar.xz OpenSMTPD-0d9aebb4197cf99020afed950fd9f43afe38427e.zip |
coding style cleanup for nullpointer checks
-rw-r--r-- | smtpd/mail.lmtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smtpd/mail.lmtp.c b/smtpd/mail.lmtp.c index 563f10e3..da8b6c2a 100644 --- a/smtpd/mail.lmtp.c +++ b/smtpd/mail.lmtp.c @@ -222,10 +222,10 @@ lmtp_engine(int fd_read, struct session *session) if ((fd_write = dup(fd_read)) == -1) err(EX_TEMPFAIL, "dup"); - if (!(file_read = fdopen(fd_read, "r"))) + if ((file_read = fdopen(fd_read, "r")) == NULL) err(EX_TEMPFAIL, "fdopen"); - if (!(file_write = fdopen(fd_write, "w"))) + if ((file_write = fdopen(fd_write, "w")) == NULL) err(EX_TEMPFAIL, "fdopen"); do { |