summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-08-06 21:38:41 +0000
committerZeev Suraski <zeev@php.net>2000-08-06 21:38:41 +0000
commitf59cbb9ed136e013b43d0a7f8fec7fd4bbb5e69a (patch)
tree00b61bb7a8d641669208a61026a19a1d044a3457
parentc6569921d7fbb4acf6b5aed07647c7739f4e5ae3 (diff)
downloadphp-git-f59cbb9ed136e013b43d0a7f8fec7fd4bbb5e69a.tar.gz
Fix & optimize
-rw-r--r--win32/sendmail.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 9344a988c5..402ef87afa 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -413,11 +413,10 @@ int MailConnect()
}
*/
- if (INI_INT("sendmail_port")){
- portnum = INI_INT("sendmail_port"));
- } else {
+ portnum = INI_INT("sendmail_port");
+ if (!portnum) {
portnum = 25;
- }
+ }
/* Connect to server */
sock_in.sin_family = AF_INET;