minor cleanup of $j definition
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 28 Nov 1993 07:05:46 +0000 (23:05 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Sun, 28 Nov 1993 07:05:46 +0000 (23:05 -0800)
SCCS-vsn: usr.sbin/sendmail/src/main.c 8.39

usr/src/usr.sbin/sendmail/src/main.c

index 2ac8faa..cb99db8 100644 (file)
@@ -13,7 +13,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     8.38 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     8.39 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        _DEFINE
 #endif /* not lint */
 
 #define        _DEFINE
@@ -314,10 +314,9 @@ main(argc, argv, envp)
 
                if (tTd(0, 4))
                        printf("canonical name: %s\n", jbuf);
 
                if (tTd(0, 4))
                        printf("canonical name: %s\n", jbuf);
-               p = newstr(jbuf);
                define('w', newstr(jbuf), CurEnv);      /* must be new string */
                define('w', newstr(jbuf), CurEnv);      /* must be new string */
-               define('j', p, CurEnv);
-               setclass('w', p);
+               define('j', newstr(jbuf), CurEnv);
+               setclass('w', jbuf);
 
                p = strchr(jbuf, '.');
                if (p != NULL)
 
                p = strchr(jbuf, '.');
                if (p != NULL)