]> diplodocus.org Git - nmh/blobdiff - mts/smtp/smtp.c
Alter HasSuffixC()'s char * to be const.
[nmh] / mts / smtp / smtp.c
index 7b706e010e8e7926d969a69af5c31abda26f9544..68228ee3daaf7f5c68f38d59838d756e7a173a98 100644 (file)
@@ -295,14 +295,13 @@ sendmail_init (char *client, int watch, int verbose, int debug, int sasl,
            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();