]> granicus.if.org Git - php/commitdiff
Fix & optimize
authorZeev Suraski <zeev@php.net>
Sun, 6 Aug 2000 21:38:41 +0000 (21:38 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 6 Aug 2000 21:38:41 +0000 (21:38 +0000)
win32/sendmail.c

index 9344a988c5f4da5331c83023e62fa8571b0933b6..402ef87afa5cb3b6deef1feb4b52330f9a552547 100644 (file)
@@ -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;