]> diplodocus.org Git - nmh/blobdiff - mts/smtp/smtp.c
Alter HasSuffixC()'s char * to be const.
[nmh] / mts / smtp / smtp.c
index f4308ba5937edacd682725dd4a38fd3da4407aad..68228ee3daaf7f5c68f38d59838d756e7a173a98 100644 (file)
@@ -128,14 +128,13 @@ smtp_init (char *client, char *server, char *port, int watch, int verbose,
        } else {
            client = LocalName(1);      /* no clientname -> LocalName */
        }
        } else {
            client = LocalName(1);      /* no clientname -> LocalName */
        }
-    }
 
 
-    /*
-     * Last-ditch check just in case client still isn't set to anything
-     */
-
-    if (client == NULL || *client == '\0')
-       client = "localhost";
+        /*
+         * Last-ditch check just in case client still isn't set to anything
+         */
+        if (client == NULL || *client == '\0')
+            client = "localhost";
+    }
 
     nsc = netsec_init();
 
 
     nsc = netsec_init();
 
@@ -296,14 +295,13 @@ sendmail_init (char *client, int watch, int verbose, int debug, int sasl,
            client = clientname;
        else
            client = LocalName(1);      /* no clientname -> LocalName */
            client = clientname;
        else
            client = LocalName(1);      /* no clientname -> LocalName */
-    }
 
 
-    /*
-     * Last-ditch check just in case client still isn't set to anything
-     */
-
-    if (client == NULL || *client == '\0')
-       client = "localhost";
+        /*
+         * Last-ditch check just in case client still isn't set to anything
+         */
+        if (client == NULL || *client == '\0')
+            client = "localhost";
+    }
 
     nsc = netsec_init();
 
 
     nsc = netsec_init();